Linked Questions

Popular Questions

Add ng-model value in false condition of ng-attr-title

Asked by At

How to do I add mainCtrl.header.Version in the string text if the condition in ng-attr-title is false?

HTML

<label class="form-control" ng-attr-title="{{mainCtrl.header.Version == 0 ? 'This form has not yet been submitted for approval' : 'This form has been submitted for approval {{mainCtrl.header.Version}} times'}}">{{mainCtrl.header.Version}}</label>

Related Questions