Angular - Q&A

 







bootstrapping [when angular app runs initially] lifecycle




types of directives :








package.json







ng new <app-name>



component -> typescript file

Also called annotation or meta data.






Angular Architecture.




-> ROUTING Implementation:

View          <  -- >.html file


<  ---  > .Routing.ts File
  1.  routerLink instead of href
  2. router-outlet : division of page where the routerLink component will be loaded.
  3. path & component : in routing.ts file 



Routing can also be done from Component (  .ts File) : 




-> LAZY Loading : on-demand loading OR loading what is essential and necessary.


Implementation in Angular : 

  1. break project in form of child/multiple components .
  2. loadChildren : in routing.ts file provide path for the component for which u want lazy loading.



> Services:

Ex : Validation / Loggers / HTTP ...





implemented inside .Module.ts file 

initializing the dependency directly without new keyword .



used to run angular App





Durgesh angular in one video

> We have predefined View, Component and CSS in Angular -> angular material.

> Similarly we have ng-bootstrap for angular.

    It is very similar to bootstrap 




















Comments

Popular posts from this blog

Durgesh - Exam Portal Project using Spring Boot and Angular