diff --git a/modules/angular2/docs/cheatsheet/built-in-directives.md b/modules/angular2/docs/cheatsheet/built-in-directives.md index 049c4961da..1aba5213a0 100644 --- a/modules/angular2/docs/cheatsheet/built-in-directives.md +++ b/modules/angular2/docs/cheatsheet/built-in-directives.md @@ -7,28 +7,29 @@ Built-in directives @cheatsheetItem syntax: -`
`|`*ng-if` +`
`|`*ngIf` description: Removes or recreates a portion of the DOM tree based on the showSection expression. @cheatsheetItem syntax: -`
  • `|`*ng-for` +`
  • `|`*ngFor` description: Turns the li element and its contents into a template, and uses that to instantiate a view for each item in list. @cheatsheetItem syntax: -`
    - - - -
    `|`[ng-switch]`|`[ng-switch-when]`|`ng-switch-when`|`ng-switch-default` +`
    + + + +
    `|`[ngSwitch]`|`[ngSwitchWhen]`|`ngSwitchWhen`|`ngSwitchDefault` description: Conditionally swaps the contents of the div by selecting one of the embedded templates based on the current value of conditionExpression. @cheatsheetItem syntax: -`
    `|`[ng-class]` +`
    `|`[ngClass]` description: Binds the presence of css classes on the element to the truthiness of the associated map values. The right-hand side expression should return {class-name: true/false} map. + diff --git a/modules/angular2/docs/cheatsheet/forms.md b/modules/angular2/docs/cheatsheet/forms.md index 9bf146aebd..5841f1dab8 100644 --- a/modules/angular2/docs/cheatsheet/forms.md +++ b/modules/angular2/docs/cheatsheet/forms.md @@ -7,6 +7,6 @@ Forms @cheatsheetItem syntax: -``|`[(ng-model)]` +``|`[(ngModel)]` description: Provides two-way data-binding, parsing and validation for form controls. diff --git a/modules/angular2/docs/cheatsheet/routing.md b/modules/angular2/docs/cheatsheet/routing.md index e800ecf4ee..5e771961ad 100644 --- a/modules/angular2/docs/cheatsheet/routing.md +++ b/modules/angular2/docs/cheatsheet/routing.md @@ -30,8 +30,7 @@ Marks the location to load the component of the active route. @cheatsheetItem -syntax: -``|`[router-link]` +``|`[routerLink]` description: Creates a link to a different view based on a route instruction consisting of a route name and optional parameters. The route name matches the as property of a configured route. Add the '/' prefix to navigate to a root route; add the './' prefix for a child route. diff --git a/modules/angular2/docs/cheatsheet/template-syntax.md b/modules/angular2/docs/cheatsheet/template-syntax.md index 7d6c8f654e..28399aec0e 100644 --- a/modules/angular2/docs/cheatsheet/template-syntax.md +++ b/modules/angular2/docs/cheatsheet/template-syntax.md @@ -50,7 +50,7 @@ Binds text content to an interpolated string, e.g. "Hello Seabiscuit". syntax: ``|`[(title)]` description: -Sets up two-way data binding. Equivalent to: `` +Sets up two-way data binding. Equivalent to: `` @cheatsheetItem syntax: diff --git a/modules/angular2/docs/core/01_templates.md b/modules/angular2/docs/core/01_templates.md index e152763f43..0786bbe6e4 100644 --- a/modules/angular2/docs/core/01_templates.md +++ b/modules/angular2/docs/core/01_templates.md @@ -359,20 +359,20 @@ Example of conditionally included template: ``` Hello {{user}}! -
    +
    ...administrator menu here...
    ``` -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. +In the above example the `ngIf` directive determines whether the child view (an instance of the child template) should be +inserted into the root view. The `ngIf` 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}}! -