I have an angular app which need to load a php page in view. Everything works great. But I need to run an angular function after the php code loads.
How can I call an angular function from php. This is the function I need to call.
$emit('iso-method', {name:null, params:null})
I could write call a javascript function but I'm unsure how to call an angular function with that either.
echo '<script type="text/javascript">'
, 'myfunction();'
, '</script>'
;