javascript - How can I check ng-if value with one php value -
how can check ng-if value 1 php value.is possible..? give me solution....
<div ng-if="val.prdcode=='<?=$value?>'"> </div>
its not way of doing that. if want do, fire ajax call , set value in controller scope's object. if want in way can achieve using ng-init directive, i've done in 1 of projects. use
<div data-ng-app="myapp" data-ng-controller="democontroller" data-ng-init="value='<?php echo $value?>'"> and in condition, use like
<div data-ng-if="val.prdcode == value"> hope may you.
Comments
Post a Comment