Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit f823605

Browse files
Foxandxssnaomiblack
authored andcommitted
chore: fix quickstart
1 parent 38fe94d commit f823605

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
// #docregion
22
import { NgModule } from '@angular/core';
33
import { BrowserModule } from '@angular/platform-browser';
4-
import { AppComponent} from './app.component'
54

65
@NgModule({
7-
imports: [ BrowserModule ],
8-
declarations: [ AppComponent ],
9-
bootstrap: [ AppComponent ]
6+
imports: [ BrowserModule ]
107
})
11-
128
export class AppModule { }

public/docs/_examples/quickstart/ts/app/app.module.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
import { NgModule } from '@angular/core';
33
import { BrowserModule } from '@angular/platform-browser';
44

5+
import { AppComponent } from './app.component';
6+
57
@NgModule({
6-
imports: [ BrowserModule ]
8+
imports: [ BrowserModule ],
9+
declarations: [ AppComponent ],
10+
bootstrap: [ AppComponent ]
711
})
12+
813
export class AppModule { }

public/docs/ts/latest/quickstart.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ block install-packages
192192

193193
Create the file `app/app.module.ts` with the following content:
194194

195-
+makeExample('app/app.module.ts')(format='.')
195+
+makeExample('app/app.module.1.ts')(format='.')
196196

197197
:marked
198198
This is the entry point to your application.
@@ -255,7 +255,7 @@ p.
255255
Edit the file `app/app.module.ts` to import your new `AppComponent` and add it in the
256256
declarations and bootstrap fields in the `NgModule` decorator:
257257

258-
+makeExample('app/app.module2.ts', null, title='app/app.module.ts')
258+
+makeExample('app/app.module.ts', null, title='app/app.module.ts')
259259

260260
.l-main-section
261261
h1#main Step !{step++}: Start up your application

0 commit comments

Comments
 (0)