Issue
How can I disable ion-input
?
<ion-input type="text"></ion-input>
I'm new at Ionic Framework, it is rather similar to HTML, but there is no property for attribute to disable it like:
.prop("disabled", true)
Solution
Ionic 2:
Static property:
<ion-input disabled="true" type="text"></ion-input>
Dynamically:
<ion-input disabled="{{isDisabled}}" type="text"></ion-input>
After in the component(.ts file):
private isDisabled: boolean=false;
Answered By - Julianesten
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.