diff --git a/public/docs/_examples/template-syntax/ts/src/app/app.component.html b/public/docs/_examples/template-syntax/ts/app/app.component.html similarity index 80% rename from public/docs/_examples/template-syntax/ts/src/app/app.component.html rename to public/docs/_examples/template-syntax/ts/app/app.component.html index 4e9def478d..1cf99f7545 100644 --- a/public/docs/_examples/template-syntax/ts/src/app/app.component.html +++ b/public/docs/_examples/template-syntax/ts/app/app.component.html @@ -23,7 +23,7 @@ -

The sum of 1 + 1 is not {{1+1+getVal()}}

+

The sum of 1 + 1 is not {{1 + 1 + getVal()}}

@@ -60,22 +60,23 @@ -
+


+ -
click me
+
click me
{{clicked}}

- + Hero Name: {{heroName}}
@@ -96,20 +97,6 @@ button -

kebab-case

- - - - - - - - - -

Property vs. Attribute (img examples)

@@ -148,7 +135,7 @@ button -
NgClass is special
+
NgClass is special
@@ -162,13 +149,13 @@ button - +
The title is {{title}}
-
- +
+

Attribute Binding

@@ -180,7 +167,7 @@ button One-Two FiveSix @@ -246,12 +233,12 @@ button - + - - + + @@ -267,8 +254,8 @@ button
- -
click with my-click
+ +
click with myClick
{{clickity}}
@@ -322,28 +309,28 @@ button without NgModel
- + -[(ng-model)] +[(ngModel)]
- + -bindon-ng-model +bindon-ngModel
+ [ngModel]="currentHero.firstName" + (ngModelChange)="currentHero.firstName=$event"> -(ng-model-change) = "...firstName=$event" +(ngModelChange) = "...firstName=$event"
+ [ngModel]="currentHero.firstName" + (ngModelChange)="setUpperCaseFirstName($event)"> -(ng-model-change) = "setUpperCaseFirstName($event)" +(ngModelChange) = "setUpperCaseFirstName($event)"
@@ -353,36 +340,36 @@ bindon-ng-model

setClasses returns {{setClasses() | json}}

-
This div is saveable and special
+
This div is saveable and special
-
+
After setClasses(), the classes are "{{classDiv.className}}"
-
This div is special
+
This div is special
Bad curly special
-
Curly special
+
Curly special

NgStyle Binding

-
+
This div is x-large

setStyles returns {{setStyles() | json}}

-
+
This div is italic, normal weight, and x-large
-
+
After setStyles(), the styles are "{{getStyles(styleDiv)}}"
@@ -394,26 +381,26 @@ After setClasses(), the classes are "{{classDiv.className}}"

NgIf Binding

-
Hello, {{currentHero.firstName}}
+
Hello, {{currentHero.firstName}}
-
Hello, {{nullHero.firstName}}
+
Hello, {{nullHero.firstName}}
- + - +
Hero Detail removed from DOM (via template) because isActive is false
-