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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -