Home > Blockchain >  How in angular 1 depending on scope can I add e-required attribute?
How in angular 1 depending on scope can I add e-required attribute?

Time:11-10

How in angular 1 depending on scope can I add e-required attribute? Doesn't want to use ng-show

E.g. for $scope.disableStreetValidation = false;

 <strong  e-required>.

And for: $scope.disableStreetValidation = true;

  <strong >.

CodePudding user response:

Following this solution, you should use this syntaks:

 <strong  ng-attr-e-required="{{disableStreetValidation || undefined}}">
  • Related