I am trying to add the Fuzzy filter following these installation steps
When I run the app, I get the error
Error: [$injector:unpr] Unknown provider: fuzzyFilterProvider <- fuzzyFilter
- Any help about what I have missed or did wrong please?
or
- Anyone know how do that in a javascript file instead of in the html file?
Here is my code:
my-component.html
<custom-text name="search" model="list.search"></custom-text>
<li ng-repeat="question in list.questions | fuzzy: list.search">
index.html
<!doctype html>
<html>
<head>
</head>
<body>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular-filter/0.5.17/angular-filter.min.js"></script>
<script>
var portal = angular.module('app-portal', ['angular.filter']);
</script>
</body>
</html>
UPDATE
Solution:
I found where add the provider. The provider name is a8m.fuzzy.