Sunday, January 10, 2021

Angular note

 Udemy Angular - The Complete Guide (2020 Edition)

1. ng new my-first-app

n/n

   cd my-first-app

   ng serve

   http://localhost:4200/

2. ng new hello-cli

ng g c product --inline-style --inline-template --skipTests

will generate a single file, product.component.ts, with inlined styles and template and no test in the src/app/product directory,               

and add ProductComponent to the declarations property of @NgModule.

3. ng new ngAuction --prefix nga --routing

npm i bootstrap jquery popper.js --save-prod

ng serve -o

ng g c home

ng g c carousel

ng g c footer

ng g c navbar 

ng g c product-item 

ng g c product-detail 

ng g c search

ng g c stars

ng g s shared/product

    template: `

      <a [routerLink]="['/']">Home</a>                         

       <a [routerLink]="['/product']">Product Details</a>      

       <router-outlet></router-outlet>                         

     `           

4.

ng new angular-reddit  


No comments:

Post a Comment