I am doing Chat application ,Currently I managed to add bootstrap/bootsnipp code(Html,css,jquery) in my Ember2.14 project and jquery works fine when I add it in this folder public/assets/Chat.js then I add reference to it in app/index.html.it is now loaded in vendor.js and jquery is working fine when I am loading the page…
-My Question is: How can I call the jquery function (again) from Ember and where to put the code… I want when I press Send button to put my input Message in Chat window with jquery effect like the Bootstrap example in the below link …
I am totally new to jquery & Ember so I am not sure which function from the below jquery code I need to call (I think it may be sendMessage) and how to call it from Ember…
You might want to look at rebuilding that chat window using Ember components. While you’ll need to learn a little, it means that you can leverage the whole Ember ecosystem. It also means that you can add other functionality such as sending and receiving messages from a server. You can reuse the HTML and CSS, so it’s not completely from scratch
The logic of displaying the messages you’ll want to map out. Roughly, you’ll want an array of messages which you can display by using the each helper. A button with an action that uses the value of a text input to create a new message and push in onto the messages array
I’d start with getting a blank chat window displaying, then try adding the action