Now let's review our initial setup:
src/index.html
<head>
<meta charset="utf-8">
<title>Angular Material Start</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root>Loading...</app-root>
</body>
src/app/app.module.ts
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {HttpClientModule} from '@angular/common/http';
import {AppComponent} from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
HttpClientModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}
These files contain the basic application components and bootstrapping instructions for our application.
- The
index.html
file is the html entry point - The
main.ts
is the Webpack entry point
Note: The
angular-cli.json
file simply configures how angular-cli via webpack loads all of the files/libraries.