diff --git a/public/docs/_examples/structural-directives/ts/src/app/app.component.html b/public/docs/_examples/structural-directives/ts/src/app/app.component.html index 309d2bb5f7..49c4928aad 100644 --- a/public/docs/_examples/structural-directives/ts/src/app/app.component.html +++ b/public/docs/_examples/structural-directives/ts/src/app/app.component.html @@ -48,11 +48,11 @@

NgIf

NgIf with template

-

<template> element

+

<ng-template> element

- +

template attribute

@@ -140,9 +140,9 @@

NgFor

<template ngFor let-hero [ngForOf]="heroes" let-i="index" let-odd="odd" [ngForTrackBy]="trackById">

- + @@ -179,21 +179,21 @@

NgSwitch with template attribute

-

NgSwitch with <template>

+

NgSwitch with <ng-template>

- - - - +
@@ -202,9 +202,9 @@

NgSwitch with <template>

<template>

Hip!

- +

Hooray!

@@ -242,9 +242,9 @@

UnlessDirective with template

(A) <p template="myUnless condition" class="code unless">

- + diff --git a/public/docs/_examples/template-syntax/ts/src/app/app.component.html b/public/docs/_examples/template-syntax/ts/src/app/app.component.html index e58460bf89..760fa3a367 100644 --- a/public/docs/_examples/template-syntax/ts/src/app/app.component.html +++ b/public/docs/_examples/template-syntax/ts/src/app/app.component.html @@ -544,13 +544,13 @@

[ngStyle] binding to currentStyles - CSS property names

- +Add {{currentHero.name}} with template
Hero Detail removed from DOM (via template) because isActive is false
- + diff --git a/public/docs/ts/latest/guide/structural-directives.jade b/public/docs/ts/latest/guide/structural-directives.jade index 7b38bf765b..60be473458 100644 --- a/public/docs/ts/latest/guide/structural-directives.jade +++ b/public/docs/ts/latest/guide/structural-directives.jade @@ -23,10 +23,11 @@ style. * [Inside the *NgSwitch* directives](#ngSwitch) * [Prefer the (*) prefix](#prefer-asterisk) - * [The <template> element](#template) + * [The <ng-template> element](#template) * [Group sibling elements with <ng-container>](#ng-container) * [Write a structural directive](#unless) + Try the . a#definition @@ -52,7 +53,7 @@ a#definition You'll learn in this guide that the [asterisk (*) is a convenience notation](#asterisk) and the string is a [_microsyntax_](#microsyntax) rather than the usual [template expression](template-syntax.html#template-expressions). - Angular desugars this notation into a marked-up `