Can I have some JSON object that is employes.json file for example:
{"employees":[
{"firstName":"John", "lastName":"Doe"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Peter", "lastName":"Jones"}
]}
And than use that object inside of a script where angular.js is? In other words how can I invoke predefined object in angular file and parse it?
$httpservice call to thejson fileand on success responseparse the jsonobject.