This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
_examples/quickstart/ts/app Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
// #docregion
2
2
import { NgModule } from '@angular/core' ;
3
3
import { BrowserModule } from '@angular/platform-browser' ;
4
- import { AppComponent } from './app.component'
5
4
6
5
@NgModule ( {
7
- imports : [ BrowserModule ] ,
8
- declarations : [ AppComponent ] ,
9
- bootstrap : [ AppComponent ]
6
+ imports : [ BrowserModule ]
10
7
} )
11
-
12
8
export class AppModule { }
Original file line number Diff line number Diff line change 2
2
import { NgModule } from '@angular/core' ;
3
3
import { BrowserModule } from '@angular/platform-browser' ;
4
4
5
+ import { AppComponent } from './app.component' ;
6
+
5
7
@NgModule ( {
6
- imports : [ BrowserModule ]
8
+ imports : [ BrowserModule ] ,
9
+ declarations : [ AppComponent ] ,
10
+ bootstrap : [ AppComponent ]
7
11
} )
12
+
8
13
export class AppModule { }
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ block install-packages
192
192
193
193
Create the file `app/app.module.ts` with the following content:
194
194
195
- + makeExample('app/app.module.ts' )( format ='.' )
195
+ + makeExample('app/app.module.1. ts' )( format ='.' )
196
196
197
197
:marked
198
198
This is the entry point to your application.
255
255
Edit the file `app/app.module.ts` to import your new `AppComponent` and add it in the
256
256
declarations and bootstrap fields in the `NgModule` decorator:
257
257
258
- + makeExample('app/app.module2 .ts' , null , title='app/app.module.ts' )
258
+ + makeExample('app/app.module .ts' , null , title='app/app.module.ts' )
259
259
260
260
.l-main-section
261
261
h1#main Step !{step++ } : Start up your application
You can’t perform that action at this time.
0 commit comments