angularangular 2Angular Bindingsapollobackendbrowserbuild apps fasgraphqlmeteormobilerealtimerealtime syncwebsockets
WhatsApp Clone with Meteor CLI and Ionic : 9. Send image messages
Our last step would be implementing image messages support. We will use the same package from the previous step to achieve that.
So we will use the same logic of taking the picture in the controller, and call the same
newMessage()
server method:
And now we need to register an
ng-click
event to the image button on the view:
In the server, we need to add a validation scheme for image messages in the
newMessage()
method:
Our next step would be updating the chat view to support image messages:
Let's add some
css
to prevent images from looking silly:
We also want to add image icon on the chats list in case when the last message is an image message, so let's add it:
0 comments