Skip to content

Commit

Permalink
docs(aio): update template forms to CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxandxss committed Nov 13, 2017
1 parent 24cf8b3 commit 56c7ab2
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 376 deletions.
Empty file.
1 change: 1 addition & 0 deletions aio/content/examples/forms/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<app-hero-form></app-hero-form>
3 changes: 2 additions & 1 deletion aio/content/examples/forms/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component } from '@angular/core';

@Component({
selector: 'app-root',
template: '<app-hero-form></app-hero-form>'
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent { }
3 changes: 2 additions & 1 deletion aio/content/examples/forms/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';

import { AppComponent } from './app.component';
import { HeroFormComponent } from './hero-form.component';
import { HeroFormComponent } from './hero-form/hero-form.component';

@NgModule({
imports: [
Expand All @@ -15,6 +15,7 @@ import { HeroFormComponent } from './hero-form.component';
AppComponent,
HeroFormComponent
],
providers: [],
bootstrap: [ AppComponent ]
})
export class AppModule { }
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// #docregion , v1, final
import { Component } from '@angular/core';

import { Hero } from './hero';
import { Hero } from '../hero';

@Component({
selector: 'app-hero-form',
templateUrl: './hero-form.component.html'
templateUrl: './hero-form.component.html',
styleUrls: ['./hero-form.component.css']
})
export class HeroFormComponent {

Expand Down
1 change: 1 addition & 0 deletions aio/content/examples/forms/src/styles.1.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import url('https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css');

0 comments on commit 56c7ab2

Please sign in to comment.