diff --git a/aio/content/examples/what-is-angular/src/app/hello-world-bindings/hello-world-bindings.component.html b/aio/content/examples/what-is-angular/src/app/hello-world-bindings/hello-world-bindings.component.html index 69b2337298e..58a658417be 100644 --- a/aio/content/examples/what-is-angular/src/app/hello-world-bindings/hello-world-bindings.component.html +++ b/aio/content/examples/what-is-angular/src/app/hello-world-bindings/hello-world-bindings.component.html @@ -1,7 +1,15 @@ - + -

You can set my color in the component!

+

+ You can set my color in the component! +

-

My color is {{ fontColor }}

\ No newline at end of file +

My color is {{ fontColor }}

diff --git a/aio/content/examples/what-is-angular/src/app/hello-world-bindings/hello-world-bindings.component.ts b/aio/content/examples/what-is-angular/src/app/hello-world-bindings/hello-world-bindings.component.ts index 7dd835680ac..941882099ed 100644 --- a/aio/content/examples/what-is-angular/src/app/hello-world-bindings/hello-world-bindings.component.ts +++ b/aio/content/examples/what-is-angular/src/app/hello-world-bindings/hello-world-bindings.component.ts @@ -5,13 +5,15 @@ import { Component } from '@angular/core'; templateUrl: './hello-world-bindings.component.html' }) export class HelloWorldBindingsComponent { - fontColor = 'blue'; - sayHelloId = 1; - canClick = false; - message = 'Hello, World'; + fontColor = 'blue'; + sayHelloId = 1; + canClick = false; + message = 'Hello, World'; + // #docregion method - sayMessage() { - alert(this.message); - } + sayMessage() { + alert(this.message); + } // #enddocregion + } diff --git a/aio/content/examples/what-is-angular/src/app/hello-world-di/hello-world-di.component.html b/aio/content/examples/what-is-angular/src/app/hello-world-di/hello-world-di.component.html index 998a6d12525..531f697ff42 100644 --- a/aio/content/examples/what-is-angular/src/app/hello-world-di/hello-world-di.component.html +++ b/aio/content/examples/what-is-angular/src/app/hello-world-di/hello-world-di.component.html @@ -1,3 +1,5 @@

Hello World: Dependency Injection

+ -

Be sure to open the console to view the output!

\ No newline at end of file + +

Be sure to open the console to view the output!

diff --git a/aio/content/examples/what-is-angular/src/app/hello-world-di/hello-world-di.component.ts b/aio/content/examples/what-is-angular/src/app/hello-world-di/hello-world-di.component.ts index c0bf58a7c65..aa0dfd9b7c1 100644 --- a/aio/content/examples/what-is-angular/src/app/hello-world-di/hello-world-di.component.ts +++ b/aio/content/examples/what-is-angular/src/app/hello-world-di/hello-world-di.component.ts @@ -8,8 +8,7 @@ import { Logger } from '../logger.service'; export class HelloWorldDependencyInjectionComponent { count = 0; - constructor(private logger: Logger) { - } + constructor(private logger: Logger) { } onLogMe() { this.logger.writeCount(this.count); diff --git a/aio/content/examples/what-is-angular/src/app/hello-world-ngif/hello-world-ngif.component.html b/aio/content/examples/what-is-angular/src/app/hello-world-ngif/hello-world-ngif.component.html index 4c3fc12e983..11af693df9e 100644 --- a/aio/content/examples/what-is-angular/src/app/hello-world-ngif/hello-world-ngif.component.html +++ b/aio/content/examples/what-is-angular/src/app/hello-world-ngif/hello-world-ngif.component.html @@ -1,9 +1,13 @@

Hello World: ngIf!

+ +

You can edit the following paragraph.

+

The following paragraph is read only. Try clicking the button!

+

{{ message }}

diff --git a/aio/content/examples/what-is-angular/src/app/hello-world-ngif/hello-world-ngif.component.ts b/aio/content/examples/what-is-angular/src/app/hello-world-ngif/hello-world-ngif.component.ts index 184852f1d66..25b98922d8c 100644 --- a/aio/content/examples/what-is-angular/src/app/hello-world-ngif/hello-world-ngif.component.ts +++ b/aio/content/examples/what-is-angular/src/app/hello-world-ngif/hello-world-ngif.component.ts @@ -2,9 +2,9 @@ import { Component } from '@angular/core'; @Component({ - selector: 'hello-world-ngif', - templateUrl: './hello-world-ngif.component.html' - }) + selector: 'hello-world-ngif', + templateUrl: './hello-world-ngif.component.html' +}) export class HelloWorldNgIfComponent { message = 'I\'m read only!'; canEdit = false; diff --git a/aio/content/examples/what-is-angular/src/app/hello-world/hello-world.component.ts b/aio/content/examples/what-is-angular/src/app/hello-world/hello-world.component.ts index 6c267b48eca..959dd350058 100644 --- a/aio/content/examples/what-is-angular/src/app/hello-world/hello-world.component.ts +++ b/aio/content/examples/what-is-angular/src/app/hello-world/hello-world.component.ts @@ -7,7 +7,7 @@ import { Component } from '@angular/core'; template: `

Hello World

This is my first component!

- `, + ` }) export class HelloWorldComponent { // The code in this class drives the component's behavior.