Reputation: 71
I have applied this condition on element but it is not showing any border also it is not showing any error in parsing html:
<h1 ng-style="'{border:' + f()+'px' + 'solid red'+'}'">{{a}}</h1>
Here is the code from my controller:
$scope.a = "dynamic border";
$scope.f = function() {
return 1;
};
Upvotes: 1
Views: 52