javascript - How can I display JSON data in angularJS if the key is variable? -


I am writing a website for my school that, among other things, departmental changes will be displayed. These changes have already been gathered with a script that I wrote. To improve the workflow, I want to automate the speed of data on the website, while the script automatically transmits an email to the department, it also saves information as JSON data and it is on the server Uploads where I use 'angularJS $ http.get to save it in $ scope.

  var integrationFactory = function ($ http) {var factory = {}; Factory.getNotes = function () {return $ http.get ('/ ci / json_releasenotes.json'); }; Return factory; }; Angular Module ('integration app'). Factory ('integrationfinor', integration point);   

Because the release notes have been continually upgraded, because I would like to save it because if it happens something like

  {"0": "This is the first note", "1": "This is the second note", "2": "etc ..."}   

Although there is no key, Let's do it,

  in notes & gt; div ng-repeat key & gt; {{Key.notes}} & lt; / Div & gt;   

Is there any other way to do this?

You can do something like

     

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -