-
Notifications
You must be signed in to change notification settings - Fork 86
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
angularjs integration #2
Comments
+1 |
3 similar comments
+1 |
+1 |
+1 |
this can be done with a custom directive, I don't think it is within the scope of this library to support a integration into one specific framework |
Yes... I created a filter who converts plain text in emoji using something like this:
and used {{ input | emojify }}. But... If you have to bind html, i suggest to create a custom directive, and link function will come like this..
Hope it helps Someone ⛅ |
When I import |
@samar that is obvious, since wdtEmojiBundle is not imported. You've to find a way whereby you get access to all the methods inside wdtEmojiBundle object. In angular style for web, I would directly use it as $scope.wdtEmojiBundle. |
@nageshd3 I am using |
@SamarRizvi if you are using angular 2 with typescript: you need to declare wdtEmojiBundle with
|
I am having the same issue as @nageshd3 and I am using angular1. I'm trying to get the emoji picker to display inside of an input field that's found within an html template associated with a controller. When I try to init this bundle in the controller (by way of a simple this.wdtEmojiBundle.init() in the controller, I get the same error that @nageshd3 had. As others have suggested, it seems this is not meant to be used within an angular app. |
Hi, I'm having some issue, I'm trying to install for angular 2 & typescript, but I don't understand how to implement this 😞 someone can help me please ? |
Same issue here .. ! I can't integrate |
My issue is when i want to execute wdtEmojibundle.init(''.my-input-selector") it tells me it's not a constructor :/ And I'm not sure where exactly i could be wrong? Did someone also had the same issue? |
@VLazzarova Can you try with capital letter of B: wdtEmojiBundle.init |
@needim It's actually how I wrote it, wrote it with a typo inhere 🙈 |
@VLazzarova Oh this is an issue about Angular :/ I'm not familiar with Angular :/ |
@needim I found sth. I think it throws me the error cause of the EmojiConvertor. In the init function it calls this constructor, so it throws me the error it's not a constructor. It actually prints the EmojiConvertor on the console as _ (and my error is exactly: " _ is not a constructor") |
@VLazzarova hmm emoji.min.js is a dependency. It's in the repo. Maybe you missed that part? |
@VLazzarova check the file emoji.min.js is being loaded when you initialize controller. If you are lazy loading, try to load this library file serially. |
@needim yep, that was it! I was loading wdt-emoji-bundle.min.js first and then the emoji.min.js |
@VLazzarova nice! I guess I'm not good at documentation section, I will work on that. :/ |
@needim a getting this error what do you think could be the problem..? Uncaught TypeError: Cannot read property 'querySelector' of null |
If anyone has been able to make an integration with AngularJS work for the emoji picker, please do share the code/repo. |
Hi there,
Thank you for this amazing job.
How can in integrate the picker with angularjs application ?
i Hope to see an angular version.
Thanks !
The text was updated successfully, but these errors were encountered: