Posts

Showing posts from September, 2018

Angular JS

Reference: https://www.youtube.com/watch?v=UzvyuYEAU8o Source Code: https://www.dropbox.com/sh/pxn8os58g00filr/AAAenHvG5hnjwdAt9Uqd6n2Ia?dl=0 CDN UI-Bootstrap Link : https://cdnjs.com/libraries/angular-ui-bootstrap Install >npm install angular@1.5

Angular 6

Image
Prerequisite - Node Js Command > npm -v //check nodejs version > npm install -g @angular/cli  //install angular client > ng new app --style=scss --routing   //create application, default style=css, add routing flag to create routing file\ > ng serve -o   //start server File 1. index.html (specify app-root) 2. app.component.ts (descript app-root which contains ...)    2.1 app.component.html    2.2 app.component.scss Add component > ng generate component sidebar  OR > ng g c posts //create file necessary files e.g. html, scss, ts Add service > ng generate service data Install angular animation >npm install @angular/animation@latest --save Build >ng build //To reduce the size >ng build --prod This will create /dist folder under project folder However, you may have to change base href at index.html e.g.  <base href="/ng7/dist/ng7/"> ---------------------------------- ...