2
я пытаюсь внедрить $ HTTP в контроллер директивы как следующее:
JS
app.direcitve('customDirecitve',function(){
return : 'E',
scope : {
url : "@",
urlParams : "@"
} ,
controller : ['$scope', '$http', function($scope, $element, $attrs, $transclude,$http) {
$http.post($scope.url,$scope.urlParams).success(function (data) {
});
]};
});
, что случилось с этой инъекции?
Благодаря @Marius, что это было :) – sisimh