@@ -10,7 +10,6 @@
-
diff --git a/public/docs/_examples/template-syntax/ts/src/app/hero.ts b/public/docs/_examples/template-syntax/ts/src/app/hero.ts
index 6331b62a7b..f8cc3b16a6 100644
--- a/public/docs/_examples/template-syntax/ts/src/app/hero.ts
+++ b/public/docs/_examples/template-syntax/ts/src/app/hero.ts
@@ -1,13 +1,14 @@
export class Hero {
- static nextId = 1;
+ static nextId = 0;
static heroes: Hero[] = [
new Hero(
- 325,
+ null,
'Hercules',
'happy',
new Date(1970, 1, 25),
- 'http://www.imdb.com/title/tt0065832/'
+ 'http://www.imdb.com/title/tt0065832/',
+ 325
),
new Hero(1, 'Mr. Nice', 'happy'),
new Hero(2, 'Narco', 'sad' ),
diff --git a/public/docs/ts/latest/guide/template-syntax.jade b/public/docs/ts/latest/guide/template-syntax.jade
index c7842ecdb7..6b25a680d4 100644
--- a/public/docs/ts/latest/guide/template-syntax.jade
+++ b/public/docs/ts/latest/guide/template-syntax.jade
@@ -6,7 +6,7 @@ block includes
- var __new_op = '
new
';
- var __objectAsMap = 'object';
-// The docs standard h4 style uppercases, making code terms unreadable. Override it.
+//- The docs standard h4 style uppercases, making code terms unreadable. Override it.
style.
h4 {font-size: 17px !important; text-transform: none !important;}
.syntax { font-family: Consolas, 'Lucida Sans', Courier, sans-serif; color: black; font-size: 85%; }
@@ -22,6 +22,7 @@ style.
a#toc
:marked
### Table of contents
+
This guide covers the basic elements of the Angular template syntax, elements you'll need to construct the view:
* [HTML in templates](#html)
@@ -34,16 +35,16 @@ a#toc
* [Event binding (
(event) )](#event-binding)
* [Two-way data binding (
[(...)] )](#two-way)
* [Built-in directives](#directives)
- * [Attribute directives](#attribute-directives)
- * [NgClass](#ngClass)
- * [NgStyle](#ngStyle)
- * [NgModel (
[(ngModel)]) ](#ngModel)
- * [Structural directives](#structural-directives)
- * [NgIf](#ngIf)
- * [NgFor](#ngFor)
- * [Template input variables](#template-input-variables)
- * [microsyntax](#microsyntax)
- * [The NgSwitch directives](#ngSwitch)
+ * [Built-in attribute directives](#attribute-directives)
+ * [NgClass](#ngClass)
+ * [NgStyle](#ngStyle)
+ * [NgModel (
[(ngModel)]) ](#ngModel)
+ * [Built-in structural directives](#structural-directives)
+ * [NgIf](#ngIf)
+ * [NgFor](#ngFor)
+ * [Template input variables](#template-input-variables)
+ * [Microsyntax](#microsyntax)
+ * [The NgSwitch directives](#ngSwitch)
* [Template reference variables (
#var )](#ref-vars)
* [Input and output properties (
@Input and
@Output )](#inputs-outputs)
* [Template expression operators](#expression-operators)
@@ -57,17 +58,13 @@ a#toc
a#html
:marked
## HTML in templates
- HTML is the language of the Angular template.
- The [QuickStart](../quickstart.html) application has a template that is pure HTML:
-
-code-example(language="html" escape="html").
-
Hello Angular
-:marked
+ HTML is the language of the Angular template.
Almost all HTML syntax is valid template syntax.
The `