0

I am trying to add the Fuzzy filter following these installation steps

  1. Angular-filter - GetStarted
  2. Angular-filter fuzzy.

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.

5
  • Show your code. Commented May 19, 2020 at 14:23
  • Can you show your setup? have you followed all the steps. It's working fine for me after following all the steps mentioned in the docs. Commented May 19, 2020 at 14:34
  • @palasH I have added the code. Do you know how do it in a javascript file instead of in the html file? Commented May 19, 2020 at 17:10
  • Sure. Could you please first create a small demo for this using jsfiddle that would help us to see what you have missed. Commented May 19, 2020 at 17:25
  • @palasH sorry but I can't because the data is been taken from a backend. I have found this example in stackoverflow stackoverflow.com/questions/14935996/… and is exactly what I need but using the Fuzzy code. Commented May 19, 2020 at 17:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.