Hi Inderpreet,

If you include an script tag in one of your templates it will not be run. 
This is a security measurement, and in place for your own protection.  
If you need to include data in a template, you need to extract it by hand. 
Put the json data inside an tag, and read the content of the tag with 
javascipt,
and parse it with JSON.parse.

An easier way is, expose the json as an api-endpoint on your server, so you 
can easily fetch it with $http.get('url).

Does this help?


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to