i am new to angularjs.can somebody help me to get this fixed.
Code
var myApp = angular.module("myApp", ['ngRoute','ngAnimate']);
myApp.controller('angCon2', function($scope, $http) {
$http.get('https://api.myjson.com/bins/nlfmz')
.success(function(response) {
$scope.lists = response;
});
});
Error Message
TypeError: $http.get(...).success is not a function
.successis a thing…? → docs.angularjs.org/api/ng/service/$httptheninstead ofsuccess, see this: stackoverflow.com/questions/33531336/…