angularjs - Injection error while injecting scope in custom filter definition -


i trying inject $scope variable in angularjs custom filter definition.

the javascript code looks this:

angular.module('myapp',[])  .filter("myfilter", ['$scope', myfilterfunction])  function myfilterfunction($scope){  return function(client){    return client.tolowercase();  } } 

but way not working due injection error. there better way achieve trying here.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -