Hey everyone!
I've encountered an issue: I am struggling to write a filter in Angular that is used in a filter chain. My knowledge of Angular is limited, so I'm hoping that the problem lies in a small mistake in my code.
Here is a snippet from my JavaScript file with filters (I acknowledge that there may be something glaringly obvious that I have overlooked):
(function () {
angular.module('myModule')
.filter('firstFilter', function () {
return function (input) {
return input;
}
});
angular.module('myModule')
.filter('secondFilter', function () {
return function (input, firstParam, secondParam) {
return input;
}
});
})();
Next, here is part of my HTML where I attempted to use the secondFilter:
<tr ng-repeat="someObject in (someObjects | secondFilter : firstParam : secondParam)"></tr>
However, upon loading the page, I receive the following error message:
Unknown provider: secondFilterFilterProvider
If necessary, I can provide the full error message. Any assistance would be greatly appreciated. Thank you!