You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have a data-enabled attribute which is the negation of the data-disabled attribute. This will make the code more logical when tieing it to a boolean variable that determines whether or not a boolean attribute is enabled. For example:
Agree to terms and conditions:
<input type="checkbox" data-checked="{{termsAndConditionsChecked}}" >
<input type="text" data-enabled="{{termsAndConditionsChecked}}" >
And in the template
var template = function(scope) {
scope.termsAndConditions = false;
}
This will avoid having to do a negation for the variable as would be the case for the data-disabled attribute.
Happy to work on a PR for this "feature" if needed ..
The text was updated successfully, but these errors were encountered:
It would be nice to have a
data-enabled
attribute which is the negation of thedata-disabled
attribute. This will make the code more logical when tieing it to a boolean variable that determines whether or not a boolean attribute is enabled. For example:And in the template
This will avoid having to do a negation for the variable as would be the case for the
data-disabled
attribute.Happy to work on a PR for this "feature" if needed ..
The text was updated successfully, but these errors were encountered: