Я новичок в angularjs.can кто-нибудь поможет мне получить это исправлено.
Код
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;
});
});
Сообщение об ошибке
TypeError: $http.get(...).success is not a function
Что дало вам понять, что '.success' это вещь ...? → https://docs.angularjs.org/api/ng/service/$http – deceze
Используйте 'then' вместо' success', см. Это: http://stackoverflow.com/questions/33531336/angularjs-error-success -is-not-a-function –