mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
docs(attr)
This commit is contained in:
@ -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({
|
||||
selector: '[attr]',
|
||||
inputs: ['attr']
|
||||
|
Reference in New Issue
Block a user