$http.get(…).success is not a function
The .success syntax was correct up to Angular v1.4.3. For versions up to Angular v.1.6, you have to use then method. The then() method takes two arguments: a success and an error callback which will be called with a response object. Using the then() method, attach a callback function to the returned promise. Something like … Read more