i am trying to inject $http into directive controller like the following :
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) {
});
]};
});
what is wrong with this injection ?