AngularJS - Getting data inserted in dom
问题 I'm looking for a way to get initial data from a DOM after the application is loaded. Data has been inserted in a view by a server. Is Module 's value method is a good way? As well i want to know how to get data from a views when i'm working with routes , can i use script tags for injecting a data in specific scopes? I saw this and this questions but it didn't help a lot. 回答1: 1) First solution inspired by this question and it is Module's value method: <script> var users_json = '[{"name":