15. Can I set an angular variable from PHP session variable without sending an HTTP request?

Yes, we can do that by injecting PHP in the required place.

$scope.name=”;
This will work only if you are using PHP to render the HTML and the above javascript is writter in tag inside the php file.

Leave a Reply