html - Javascript $http dependency injection -
i'm having problems trying make http calls inside same javascript controller gives me error: 'function not defined'
if move function outside of controller, can't use $http dependency.. here's problem...
what should use?
i'm trying call function through onclick event on div created dinamically.
i've tried not work:
function mycontroller($scope,$http,$resource) { function activatesmartcase(deviceid) { }; }
thanks
if call method ng-click
directive should attached $scope
$scope.activatesmartcase=function(deviceid){ }
Comments
Post a Comment