From 842459aa46c1387a6f599422321486a6abe0c7a7 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Thu, 14 May 2015 17:21:43 +0200 Subject: [PATCH] doc: fix & sync with latest updates --- modules/angular2/docs/core/01_templates.md | 30 ++++++++-------- modules/angular2/docs/core/02_directives.md | 38 ++++++++++----------- modules/angular2/docs/core/10_view.md | 14 ++++---- modules/angular2/docs/core/12_zones.md | 13 ++++--- 4 files changed, 49 insertions(+), 46 deletions(-) diff --git a/modules/angular2/docs/core/01_templates.md b/modules/angular2/docs/core/01_templates.md index 7682be75fc..ebc63a0bd4 100644 --- a/modules/angular2/docs/core/01_templates.md +++ b/modules/angular2/docs/core/01_templates.md @@ -382,20 +382,20 @@ Example of conditionally included template: ``` Hello {{user}}! -
+
...administrator menu here...
``` -In the above example the `if` directive determines whether the child view (an instance of the child template) should be -inserted into the root view. The `if` makes this decision based on if the `isAdministrator` binding is true. +In the above example the `ng-if` directive determines whether the child view (an instance of the child template) should be +inserted into the root view. The `ng-if` makes this decision based on if the `isAdministrator` binding is true. The above example is in the short form, for better clarity let's rewrite it in the canonical form, which is functionally identical. ``` Hello {{user}}! -