diff --git a/aio/content/examples/styleguide/src/01-01/app/app.component.ts b/aio/content/examples/styleguide/src/01-01/app/app.component.ts
index d5bb953540..7e7444d3ae 100644
--- a/aio/content/examples/styleguide/src/01-01/app/app.component.ts
+++ b/aio/content/examples/styleguide/src/01-01/app/app.component.ts
@@ -9,6 +9,6 @@ import { HeroService } from './heroes';
`,
styleUrls: ['./app.component.css'],
- providers: [ HeroService ]
+ providers: [HeroService]
})
-export class AppComponent { }
+export class AppComponent {}
diff --git a/aio/content/examples/styleguide/src/01-01/app/heroes/hero.component.avoid.ts b/aio/content/examples/styleguide/src/01-01/app/heroes/hero.component.avoid.ts
index 853e6ab64e..2ec03ca8b3 100644
--- a/aio/content/examples/styleguide/src/01-01/app/heroes/hero.component.avoid.ts
+++ b/aio/content/examples/styleguide/src/01-01/app/heroes/hero.component.avoid.ts
@@ -1,9 +1,8 @@
// #docregion
/* avoid */
-
-import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
+import { Component, NgModule, OnInit } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
-import { NgModule, Component, OnInit } from '@angular/core';
+import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
class Hero {
id: number;
@@ -24,24 +23,24 @@ class AppComponent implements OnInit {
heroes: Hero[] = [];
ngOnInit() {
- getHeroes().then(heroes => this.heroes = heroes);
+ getHeroes().then(heroes => (this.heroes = heroes));
}
}
@NgModule({
- imports: [ BrowserModule ],
- declarations: [ AppComponent ],
- exports: [ AppComponent ],
- bootstrap: [ AppComponent ]
+ imports: [BrowserModule],
+ declarations: [AppComponent],
+ exports: [AppComponent],
+ bootstrap: [AppComponent]
})
-export class AppModule { }
+export class AppModule {}
platformBrowserDynamic().bootstrapModule(AppModule);
const HEROES: Hero[] = [
- {id: 1, name: 'Bombasto'},
- {id: 2, name: 'Tornado'},
- {id: 3, name: 'Magneta'},
+ { id: 1, name: 'Bombasto' },
+ { id: 2, name: 'Tornado' },
+ { id: 3, name: 'Magneta' }
];
function getHeroes(): Promise {
diff --git a/aio/content/examples/styleguide/src/01-01/app/heroes/shared/mock-heroes.ts b/aio/content/examples/styleguide/src/01-01/app/heroes/shared/mock-heroes.ts
index 2e9a69f59d..f3a0ef7ce4 100644
--- a/aio/content/examples/styleguide/src/01-01/app/heroes/shared/mock-heroes.ts
+++ b/aio/content/examples/styleguide/src/01-01/app/heroes/shared/mock-heroes.ts
@@ -2,7 +2,7 @@
import { Hero } from './hero.model';
export const HEROES: Hero[] = [
- {id: 1, name: 'Bombasto'},
- {id: 2, name: 'Tornado'},
- {id: 3, name: 'Magneta'},
+ { id: 1, name: 'Bombasto' },
+ { id: 2, name: 'Tornado' },
+ { id: 3, name: 'Magneta' }
];
diff --git a/aio/content/examples/styleguide/src/01-01/main.ts b/aio/content/examples/styleguide/src/01-01/main.ts
index 7e8269bd65..f332d1d245 100644
--- a/aio/content/examples/styleguide/src/01-01/main.ts
+++ b/aio/content/examples/styleguide/src/01-01/main.ts
@@ -1,6 +1,6 @@
// #docregion
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
-import { AppModule } from './app/app.module';
+import { AppModule } from './app/app.module';
platformBrowserDynamic().bootstrapModule(AppModule);