Even if the div condition is not satisfied it is executing the code inside div.
<div ng-if = "1==11">
nishant
<td><a href="indexForm.jsp?id=" class="btn btn-primary">View Details</a></td>
</div>
Here in the code the ng-if is not satisfied, so it need not to go through the div, but it is not printing “nishant” but executing .Kindly, help me why it is executing .
Source: AngularJS
from Angular Questions https://angularquestions.com/2017/10/06/even-if-the-div-condition-is-not-satisfied-it-is-executing-the-code-inside-div/
via @lzomedia #developer #freelance #web #lzomedia.com
No comments:
Post a Comment