Pass A Php Variable To Angularjs Variable
Using AngularJS data binding, I'd like to return num1 * num2 as user type num2; num1 is a PHP variable (cannot be changed by user). Following, How do I pass PHP variables to angula
Solution 1:
Change ng-init="num1('<?php echo $num1?>')">
, to ng-init="num1 = '<?php echo $num1; ?>' ">
Post a Comment for "Pass A Php Variable To Angularjs Variable"