Skip to content

Angular-TOP20s-InterviewQuestions #75

@ChaoCSSun

Description

@ChaoCSSun

1.what is Directives
2 Types of Directives:
( SAC). structure, attirbute
3 Component & Modules
Component is where you wirte your binding code, Module logically groups components

4. what is a decorator?
Defines what kind of angular class it is, @component, @NgModule?

5: four data-bind types of Angular:
Expression {{}}, [(ngModel)] properties. Event-Bindings (click), two-binds/one-binds

6 Explain architecture of Angular: hardly to describe just draw it

_7-8 component need disscuss

  1. template
  2. component
  3. data-binds
  4. direcive
  5. share date serivce
  6. DI inject service
  7. Module groups componets:_
    image

7. Routing: how to implement the Routing

  1. Confige define route collection path: '', component
  2. Router-outlet to know where to put
  3. Rout-link/ Navigate

8: LazyLoading: demoed loading, loading only the necessary HTML, css and js files to better performance

  1. How to implement the LazyLoading in angular
    1. divide you project to modules
    2. use the route loadChildren = 'module'
      image

9. Defines Services:
Services help you to share common logic across Angular Projects:
10: DI
DI is an application design pattern where rather then creating object instances from within component.Angular inject by Contructor
11: How to implement DI In Angular:
providers: [
{provide: BaseLogger, useClass: BaseLoager}
] which belong to ngModule

12. benifies of angular DI
decouple class dependencies

13: ng Server/ng build
ng serve build in memory, ng build build for production

ng build --prod compress js file removes comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions