chore: fix quickstart

This commit is contained in:
Jesús Rodríguez 2016-09-01 17:24:15 +02:00 committed by Naomi Black
parent 38fe94df81
commit f823605a22
3 changed files with 9 additions and 8 deletions

View File

@ -1,12 +1,8 @@
// #docregion // #docregion
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { AppComponent} from './app.component'
@NgModule({ @NgModule({
imports: [ BrowserModule ], imports: [ BrowserModule ]
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
}) })
export class AppModule { } export class AppModule { }

View File

@ -2,7 +2,12 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
@NgModule({ @NgModule({
imports: [ BrowserModule ] imports: [ BrowserModule ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
}) })
export class AppModule { } export class AppModule { }

View File

@ -192,7 +192,7 @@ block install-packages
Create the file `app/app.module.ts` with the following content: Create the file `app/app.module.ts` with the following content:
+makeExample('app/app.module.ts')(format='.') +makeExample('app/app.module.1.ts')(format='.')
:marked :marked
This is the entry point to your application. This is the entry point to your application.
@ -255,7 +255,7 @@ p.
Edit the file `app/app.module.ts` to import your new `AppComponent` and add it in the Edit the file `app/app.module.ts` to import your new `AppComponent` and add it in the
declarations and bootstrap fields in the `NgModule` decorator: declarations and bootstrap fields in the `NgModule` decorator:
+makeExample('app/app.module2.ts', null, title='app/app.module.ts') +makeExample('app/app.module.ts', null, title='app/app.module.ts')
.l-main-section .l-main-section
h1#main Step !{step++}: Start up your application h1#main Step !{step++}: Start up your application