I have a page where I'm reverse engineering in Angular JS. All the content is being echoed in by a PHP script (bad practice I know, but I'm easing into Angular and just wanted to use it for the onBlur event).
I was trying to figure out how to pass a variable from PHP to Angular. The variable (customer email) wasn't editable so I wanted to put it in a hidden field. The issue is that ng-model doesn't bind to hidden inputs. I needed another solution..
echoorprintyour PHP inside youronblurEvent. Even if your page is a separate.jsfile, you can change it to.php. Just make sure in you do:<script type='text/javascript' src='whatever.php'></script>.