AngularJS - own filter -


i'm trying make own filter due tutorials in angularjs.

my code looks

angular.module('fooappfilters', []).filter('scenariodate', function() {   return function(input) {     // changes on input     return input;   }; });  angular.module('fooapp', ['fooappfilters']);  function fooctrl($scope, $http, $ograppfilters) {   // ... } 

anyway, i'm getting error:

error: unknown provider: $fooappfiltersprovider <- $fooappfilters 

can give me hint please? stuck here longer time.

thank you

you can inject service controller, not module.

to create filters, registering filters module, use ng-app="fooapp" in html bootstrap.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -