From f823605a22707d3d1864936a7243c19998e3bf81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20Rodri=CC=81guez?= Date: Thu, 1 Sep 2016 17:24:15 +0200 Subject: [PATCH] chore: fix quickstart --- .../quickstart/ts/app/{app.module2.ts => app.module.1.ts} | 6 +----- public/docs/_examples/quickstart/ts/app/app.module.ts | 7 ++++++- public/docs/ts/latest/quickstart.jade | 4 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) rename public/docs/_examples/quickstart/ts/app/{app.module2.ts => app.module.1.ts} (51%) diff --git a/public/docs/_examples/quickstart/ts/app/app.module2.ts b/public/docs/_examples/quickstart/ts/app/app.module.1.ts similarity index 51% rename from public/docs/_examples/quickstart/ts/app/app.module2.ts rename to public/docs/_examples/quickstart/ts/app/app.module.1.ts index 556d3e69b9..cd9673617d 100644 --- a/public/docs/_examples/quickstart/ts/app/app.module2.ts +++ b/public/docs/_examples/quickstart/ts/app/app.module.1.ts @@ -1,12 +1,8 @@ // #docregion import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; -import { AppComponent} from './app.component' @NgModule({ - imports: [ BrowserModule ], - declarations: [ AppComponent ], - bootstrap: [ AppComponent ] + imports: [ BrowserModule ] }) - export class AppModule { } diff --git a/public/docs/_examples/quickstart/ts/app/app.module.ts b/public/docs/_examples/quickstart/ts/app/app.module.ts index cd9673617d..a8b40a7650 100644 --- a/public/docs/_examples/quickstart/ts/app/app.module.ts +++ b/public/docs/_examples/quickstart/ts/app/app.module.ts @@ -2,7 +2,12 @@ import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; +import { AppComponent } from './app.component'; + @NgModule({ - imports: [ BrowserModule ] + imports: [ BrowserModule ], + declarations: [ AppComponent ], + bootstrap: [ AppComponent ] }) + export class AppModule { } diff --git a/public/docs/ts/latest/quickstart.jade b/public/docs/ts/latest/quickstart.jade index fc1529d8f5..359652a415 100644 --- a/public/docs/ts/latest/quickstart.jade +++ b/public/docs/ts/latest/quickstart.jade @@ -192,7 +192,7 @@ block install-packages 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 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 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 h1#main Step !{step++}: Start up your application