docs(cheatsheet): copy edit built-in-directives.md (#11153)
Also remove Dart-specific code, since the Dart cheatsheet is produced from dart-lang/angular2.
This commit is contained in:
parent
e2241a2f92
commit
b8ea71afb6
|
@ -4,7 +4,6 @@ Built-in directives
|
||||||
@description
|
@description
|
||||||
{@target ts}`import { CommonModule } from '@angular/common';`{@endtarget}
|
{@target ts}`import { CommonModule } from '@angular/common';`{@endtarget}
|
||||||
{@target js}Available using the `ng.common.CommonModule` module{@endtarget}
|
{@target js}Available using the `ng.common.CommonModule` module{@endtarget}
|
||||||
{@target dart}Available using `platform_directives` in pubspec{@endtarget}
|
|
||||||
|
|
||||||
@cheatsheetItem
|
@cheatsheetItem
|
||||||
syntax:
|
syntax:
|
||||||
|
@ -32,4 +31,4 @@ Conditionally swaps the contents of the div by selecting one of the embedded tem
|
||||||
syntax:
|
syntax:
|
||||||
`<div [ngClass]="{active: isActive, disabled: isDisabled}">`|`[ngClass]`
|
`<div [ngClass]="{active: isActive, disabled: isDisabled}">`|`[ngClass]`
|
||||||
description:
|
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.
|
Binds the presence of CSS classes on the element to the truthiness of the associated map values. The right-hand expression should return {class-name: true/false} map.
|
||||||
|
|
Loading…
Reference in New Issue