diff --git a/aio/content/examples/ngcontainer/src/app/app.component.css b/aio/content/examples/ngcontainer/src/app/app.component.css index cdb6631713..a5c959f6f7 100644 --- a/aio/content/examples/ngcontainer/src/app/app.component.css +++ b/aio/content/examples/ngcontainer/src/app/app.component.css @@ -4,7 +4,8 @@ button { font-size: 100%; } -code, .code { +code, +.code { background-color: #eee; color: black; font-family: Courier, sans-serif; @@ -21,14 +22,18 @@ div.code { } hr { - margin: 40px 0 + margin: 40px 0; } -td, th { +td, +th { text-align: left; vertical-align: top; } /* #docregion p-span */ -p span { color: red; font-size: 70%; } +p span { + color: red; + font-size: 70%; +} /* #enddocregion p-span */ diff --git a/aio/content/examples/ngcontainer/src/app/app.component.html b/aio/content/examples/ngcontainer/src/app/app.component.html index 33a68fecaf..0f1c2d3e89 100644 --- a/aio/content/examples/ngcontainer/src/app/app.component.html +++ b/aio/content/examples/ngcontainer/src/app/app.component.html @@ -132,7 +132,7 @@ - + diff --git a/aio/content/examples/ngcontainer/src/app/app.component.ts b/aio/content/examples/ngcontainer/src/app/app.component.ts index 65c511acd2..068d1896d8 100644 --- a/aio/content/examples/ngcontainer/src/app/app.component.ts +++ b/aio/content/examples/ngcontainer/src/app/app.component.ts @@ -6,14 +6,15 @@ import { heroes } from './hero'; @Component({ selector: 'my-app', templateUrl: './app.component.html', - styleUrls: [ './app.component.css' ] + styleUrls: ['./app.component.css'] }) export class AppComponent { heroes = heroes; hero = this.heroes[0]; - heroTraits = [ 'honest', 'brave', 'considerate' ]; + heroTraits = ['honest', 'brave', 'considerate']; // flags for the table + attrDirs = true; strucDirs = true; divNgIf = false; diff --git a/aio/content/examples/ngcontainer/src/app/app.module.ts b/aio/content/examples/ngcontainer/src/app/app.module.ts index 57ac92f518..f18ebb526e 100644 --- a/aio/content/examples/ngcontainer/src/app/app.module.ts +++ b/aio/content/examples/ngcontainer/src/app/app.module.ts @@ -1,9 +1,9 @@ // #docregion -import { NgModule } from '@angular/core'; -import { FormsModule } from '@angular/forms'; +import { NgModule } from '@angular/core'; +import { FormsModule } from '@angular/forms'; import { BrowserModule } from '@angular/platform-browser'; -import { AppComponent } from './app.component'; +import { AppComponent } from './app.component'; import { ContentComponent } from './content.component'; import { heroComponents } from './hero.components'; diff --git a/aio/content/examples/ngcontainer/src/app/hero.components.ts b/aio/content/examples/ngcontainer/src/app/hero.components.ts index 77920ebdf9..12706deda9 100644 --- a/aio/content/examples/ngcontainer/src/app/hero.components.ts +++ b/aio/content/examples/ngcontainer/src/app/hero.components.ts @@ -1,5 +1,6 @@ // #docregion import { Component, Input } from '@angular/core'; + import { Hero } from './hero'; @Component({ @@ -33,11 +34,15 @@ export class ConfusedHeroComponent { export class UnknownHeroComponent { @Input() hero: Hero; get message() { - return this.hero && this.hero.name ? - `${this.hero.name} is strange and mysterious.` : - 'Are you feeling indecisive?'; + return this.hero && this.hero.name + ? `${this.hero.name} is strange and mysterious.` + : 'Are you feeling indecisive?'; } } -export const heroComponents = - [ HappyHeroComponent, SadHeroComponent, ConfusedHeroComponent, UnknownHeroComponent ]; +export const heroComponents = [ + HappyHeroComponent, + SadHeroComponent, + ConfusedHeroComponent, + UnknownHeroComponent +]; diff --git a/aio/content/examples/ngcontainer/src/app/hero.ts b/aio/content/examples/ngcontainer/src/app/hero.ts index 89f0cbfdf8..28b435252d 100644 --- a/aio/content/examples/ngcontainer/src/app/hero.ts +++ b/aio/content/examples/ngcontainer/src/app/hero.ts @@ -6,8 +6,8 @@ export class Hero { } export const heroes: Hero[] = [ - { id: 1, name: 'Mr. Nice', emotion: 'happy'}, - { id: 2, name: 'Narco', emotion: 'sad' }, + { id: 1, name: 'Mr. Nice', emotion: 'happy' }, + { id: 2, name: 'Narco', emotion: 'sad' }, { id: 3, name: 'Windstorm', emotion: 'confused' }, - { id: 4, name: 'Magneta'} + { id: 4, name: 'Magneta' } ];