-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
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
EmojisToShowFilter --- ERROR: TypeError: Function Expected #272
Comments
probably related to #172 |
Hi @scttcper , Thanks so much for the quick response. Love the repo btw! Brilliant. I did take a look at that issue before, albeit I am not articulating an issue with the search, although that is an issue. Are you insinuating that the error I am receiving is actually from the search service and not so much having to do with me improperly calling Thanks again, |
@s-moran Thanks for the response. The issue I find with your example - having a function that is defined in the .ts file - is that in your example, nothing is being passed to the function. The documentation says
Any suggestions ? Thanks so much for your activity on this. |
The documentation is just giving you the signature of the function that is expected. In other words, you have to define a function in the .ts file that takes a string as input and returns a boolean. In the template, all you have to do is pass in the name of the function you created. When the search actually runs, your function will be called in the background many times with different string inputs. Think of your function in the same way as any other variable (boolean, string, number) that you would normally pass in a template. |
@s-moran Okay, so...
I saw that you made a PR and a change recently. Will that change effect those of us who aren't using Angular 8? |
I am going to close this issue. @s-moran, your advice helped, thanks. |
When using
emojisToShowFilter
property on theemoji-mart
component, no emojis are showing up and I am receiving in my console the message:ERROR TypeError: Function Expected.
Some variations that I have tried are:
None of these are working and I just get the same error every-time. Can someone tell me what I am doing wrong? I don't see that anyone else is having this issue...
The text was updated successfully, but these errors were encountered: