1

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 class="test" e-required>.

And for: $scope.disableStreetValidation = true;

  <strong class="test">.
pzaenger
  • 11,381
  • 3
  • 45
  • 46
Dariusz Rup
  • 41
  • 1
  • 7

1 Answers1

2

Following this solution, you should use this syntaks:

 <strong class="test" ng-attr-e-required="{{disableStreetValidation || undefined}}">
AvgustinTomsic
  • 1,809
  • 16
  • 22