Wednesday, October 12, 2016

How to conditional display the text of button in AngularJS

If you are a C# developer, you will easily understand the syntax. it is same with ? : Operator
 
?: Operator

<button type="submit" ng-click="MyButtonClick()"><span>{{isConditionMeet ? 'True Condition Text' : 'False Condition Text'}}</span></button>


No comments:

Post a Comment