We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have problems defining a custom filter, now I have a StartFromFilter.js:
StartFromFilter.js
define(['Console'], function (Console) { "use strict"; Console.group("Entering StartFromFilter module."); var filter = function(input, start) { start = +start; //parse to int return input.slice(start); } Console.groupEnd(); return filter; });
and my filters.js
filters.js
define([ // Standard Libs 'Console' // lib/console/console , 'Underscore' // lib/underscore/underscore // Application Filters , 'filters/StartFromFilter' ], function (Console, _, startFrom){ "use strict"; Console.group("Entering Filters module."); var filters = { startFrom: startFrom }; Console.info("Registered filters: ", filters); var initialize = function (angModule) { _.each(filters,function(filter,name){ angModule.filter(name,filter); }) Console.debug("Custom filters initialized."); } Console.groupEnd(); return { initialize: initialize }; });
But I get: Unknown provider: inputProvider <- input <- startFromFilter
Unknown provider: inputProvider <- input <- startFromFilter
The text was updated successfully, but these errors were encountered:
I have resolved editing StartFromFIlter.js as:
StartFromFIlter.js
define(['Console'], function (Console) { "use strict"; Console.group("Entering StartFromFilter module."); var filter = function(input, start) { start = +start; //parse to int return input.slice(start); } Console.groupEnd(); return function() { return filter; }; });
so the point is return function() { return filter; };
Sorry, something went wrong.
No branches or pull requests
I have problems defining a custom filter, now I have a
StartFromFilter.js
:and my
filters.js
But I get:
Unknown provider: inputProvider <- input <- startFromFilter
The text was updated successfully, but these errors were encountered: