a Richard Allen 7 éve
574
Még több ilyen
Identifies the root component that Angular should bootstrap when it starts the application.
The list of components or directives belonging to this module.
The other Angular Modules that export material we need in this Angular Module. Almost every application's root module should import the BrowserModule.
BrowserModule
is the Angular Module that contains all the needed Angular bits and Pieces to run our application in the browser.
NgModule
We leave to SystemJS to figure out how to load that component from @angular/core or even where @angular/core is.
By setting the selector to joke we've told angular that whenever it finds a tag in the html like