docs(attr)

This commit is contained in:
Drew Rygh
2015-12-03 17:38:45 -06:00
parent 53009f180d
commit fe061a142a

View File

@ -55,6 +55,16 @@ export class IdRef {
} }
/**
* @name Attr
* @description
* Attr allows you to dynamically add or remove an attribute based on the value of an expression or variable.
* @usage
* ```html
* // toggle the no-lines attributes based on whether isAndroid is true or false
* <ion-list [attr.no-lines]="isAndroid ? '' : null">
* ```
*/
@Directive({ @Directive({
selector: '[attr]', selector: '[attr]',
inputs: ['attr'] inputs: ['attr']