From 7cf097ea68b46910541f7a2693ab37568579f873 Mon Sep 17 00:00:00 2001 From: Ward Bell Date: Sun, 13 Dec 2015 20:10:03 -0800 Subject: [PATCH] docs(Template Syntax): update to a.53 (kebab work) closes #493 --- .../ts/{src => }/app/app.component.html | 133 ++++----- .../ts/{src => }/app/app.component.ts | 0 .../template-syntax/ts/{src => }/app/boot.ts | 0 .../ts/{src => }/app/decorator.directive.ts | 0 .../ts/{src => }/app/hero-detail.component.ts | 0 .../template-syntax/ts/{src => }/app/hero.ts | 0 .../ts/{src => }/app/my-click.directive.ts | 16 +- .../ts/{src => }/images/hero.png | Bin .../ts/{src => }/images/ng-logo.png | Bin .../ts/{src => }/images/villain.png | Bin .../template-syntax/ts/{src => }/index.html | 0 .../template-syntax/ts/{src => }/plnkr.json | 0 .../template-syntax/ts/{src => }/styles.css | 0 .../docs/ts/latest/guide/template-syntax.jade | 277 ++++++++---------- 14 files changed, 193 insertions(+), 233 deletions(-) rename public/docs/_examples/template-syntax/ts/{src => }/app/app.component.html (80%) rename public/docs/_examples/template-syntax/ts/{src => }/app/app.component.ts (100%) rename public/docs/_examples/template-syntax/ts/{src => }/app/boot.ts (100%) rename public/docs/_examples/template-syntax/ts/{src => }/app/decorator.directive.ts (100%) rename public/docs/_examples/template-syntax/ts/{src => }/app/hero-detail.component.ts (100%) rename public/docs/_examples/template-syntax/ts/{src => }/app/hero.ts (100%) rename public/docs/_examples/template-syntax/ts/{src => }/app/my-click.directive.ts (69%) rename public/docs/_examples/template-syntax/ts/{src => }/images/hero.png (100%) rename public/docs/_examples/template-syntax/ts/{src => }/images/ng-logo.png (100%) rename public/docs/_examples/template-syntax/ts/{src => }/images/villain.png (100%) rename public/docs/_examples/template-syntax/ts/{src => }/index.html (100%) rename public/docs/_examples/template-syntax/ts/{src => }/plnkr.json (100%) rename public/docs/_examples/template-syntax/ts/{src => }/styles.css (100%) 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
-