http://plnkr.co/edit/AmuC4CpfMnP9ySmOI54C?p=preview var app = angular.module('plunker', ['extraService']);
app.controller('MainCtrl', ['$scope', '$http', 'extraService', function ($scope,$http,extraService) {
$scope.name = 'World';
}]);
app.service('extraService',function(){
return 'abc';
});...
20 июль 2015, в 15:15