I have ng-if problem. I want something similar to the php syntax in AngularJS. Example:
<?php
$A = "Data";
if ( $A == "Data" ) {
$B = "ImData";
}
else{
$B = "ImNotData";
}
?>
How to make this syntax in AngularJS ng-if directive?
This does not work:
ng-if="A == 'Data' B='ImData'"