Web Developer

Section 2-1 How Angular Boots Application

How the Angular app start

  1. main.ts file will be executed first, where there is a function, called bootstrapModule(AppModule), that will connect the module in the argument.
  2. this module should be a module created by angular, in this module (AppModule) (app.module.ts), it points out bootstrap component (AppComponent) (App.Component.ts)
  3. this component has defined the selector (app-root), and will connect html template (app.component.html) to render the content of this file
Previous Article
Next Article

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>