I am writing a website for my school that, among other things will display departmental changes. These changes are already gathered with a script I wrote. To improve workflow I want the impelmentation of the data onto the website to be automated so while the script automatically sens an email to department heads it also saves the information as JSON data and uploads it to the server where I use angularJS' $http.get to save it into the $scope
var integrationFactory = function($http) {
var factory = {};
factory.getNotes = function() {
return $http.get('/ci/json_releasenotes.json');
};
return factory;
};
angular.module('integrationApp').factory('integrationFactory', integrationFactory);
Because the releasenotes is constantly being upgraded the only way I could save it as JSON was if it went something like,
{"0": "this is the first note", "1": "this is the second note", "2": "etc..." }
Because there's no key however, I can't exactly do,
<div ng-repeat key in notes>
{{ key.notes }}
</div>
Is there any other way to do it? Any help would be greatly appreciated.