diff --git a/aio/content/examples/ajs-quick-reference/src/app/app.component.html b/aio/content/examples/ajs-quick-reference/src/app/app.component.html index 72fd3de86f..82eaf9339b 100644 --- a/aio/content/examples/ajs-quick-reference/src/app/app.component.html +++ b/aio/content/examples/ajs-quick-reference/src/app/app.component.html @@ -14,13 +14,13 @@

Example Snippets

-
+
[ngClass] active
-
+
[ngClass] active and boldly important
@@ -57,7 +57,7 @@

-
+
color preference #1
diff --git a/aio/content/examples/structural-directives/src/app/app.component.html b/aio/content/examples/structural-directives/src/app/app.component.html index 49c4928aad..9f5de0b8f4 100644 --- a/aio/content/examples/structural-directives/src/app/app.component.html +++ b/aio/content/examples/structural-directives/src/app/app.component.html @@ -213,10 +213,10 @@

UnlessDirective

The condition is currently - {{condition}}. + {{condition}}.

diff --git a/aio/content/examples/template-syntax/src/app/app.component.html b/aio/content/examples/template-syntax/src/app/app.component.html index 860f9436ac..73f1186035 100644 --- a/aio/content/examples/template-syntax/src/app/app.component.html +++ b/aio/content/examples/template-syntax/src/app/app.component.html @@ -161,7 +161,7 @@ -
+


@@ -496,7 +496,7 @@ bindon-ngModel
This div is special
Bad curly special
-
Curly special
+
Curly special
top diff --git a/aio/content/examples/template-syntax/src/app/app.component.ts b/aio/content/examples/template-syntax/src/app/app.component.ts index 2c65ef1c20..2e474dd04a 100644 --- a/aio/content/examples/template-syntax/src/app/app.component.ts +++ b/aio/content/examples/template-syntax/src/app/app.component.ts @@ -140,9 +140,9 @@ export class AppComponent implements AfterViewInit, OnInit { setCurrentClasses() { // CSS classes: added/removed per current state of component properties this.currentClasses = { - saveable: this.canSave, - modified: !this.isUnchanged, - special: this.isSpecial + 'saveable': this.canSave, + 'modified': !this.isUnchanged, + 'special': this.isSpecial }; } // #enddocregion setClasses diff --git a/aio/content/examples/upgrade-phonecat-2-hybrid/app/phone-detail/phone-detail.template.html b/aio/content/examples/upgrade-phonecat-2-hybrid/app/phone-detail/phone-detail.template.html index 46a96d66c3..4068532de9 100644 --- a/aio/content/examples/upgrade-phonecat-2-hybrid/app/phone-detail/phone-detail.template.html +++ b/aio/content/examples/upgrade-phonecat-2-hybrid/app/phone-detail/phone-detail.template.html @@ -2,7 +2,7 @@
diff --git a/aio/content/examples/upgrade-phonecat-3-final/app/phone-detail/phone-detail.template.html b/aio/content/examples/upgrade-phonecat-3-final/app/phone-detail/phone-detail.template.html index 46a96d66c3..4068532de9 100644 --- a/aio/content/examples/upgrade-phonecat-3-final/app/phone-detail/phone-detail.template.html +++ b/aio/content/examples/upgrade-phonecat-3-final/app/phone-detail/phone-detail.template.html @@ -2,7 +2,7 @@
diff --git a/aio/content/guide/cheatsheet.md b/aio/content/guide/cheatsheet.md index 38626c5a55..18981299d9 100644 --- a/aio/content/guide/cheatsheet.md +++ b/aio/content/guide/cheatsheet.md @@ -136,7 +136,7 @@ is available to declarations of this module.

Conditionally swaps the contents of the div by selecting one of the embedded templates based on the current value of conditionExpression.

-<div [ngClass]="{active: isActive, disabled: isDisabled}"> +<div [ngClass]="{'active': isActive, 'disabled': isDisabled}">

Binds the presence of CSS classes on the element to the truthiness of the associated map values. The right-hand expression should return {class-name: true/false} map.

diff --git a/aio/content/guide/template-syntax.md b/aio/content/guide/template-syntax.md index a22fd58506..d05a594230 100644 --- a/aio/content/guide/template-syntax.md +++ b/aio/content/guide/template-syntax.md @@ -1371,7 +1371,7 @@ _This_ section is an introduction to the common structural directives: ### NgIf You can add or remove an element from the DOM by applying an `NgIf` directive to -that element (called the _host elment_). +that element (called the _host element_). Bind the directive to a condition expression like `isActive` in this example.