I want to load my initial page with php, so instead of making rest call to get variable, I already have the variable in my page , I need it to some way assign it to angular. I saw different ways for doing it like
<.....ng-init="somefunction('<?echo $myjsonstring?>')">
but this is not working as it thinks that my json string ends at the first double codes .I though to replace double codes with some special symbol and in angular to replace it back but this require some processing which I think will reduce its performance. Is there any other way to do this?