angular-simple-chat
angular-simple-chat copied to clipboard
How can I show avatar and names of users on left side for incoming messages?
How can I show the avatar and user name of incoming messages on left side like in the example image?
Hi, The default configuration should work. Did you have a plunker or jsfiddle link for debugging ? Regards.
I don't get how can default configuration work, because there is no option to make the difference between incoming and outgoing message. Whether a message is sent to me or I send a message, after all it adds into messages array and there is no flag for telling it to change sides. Please guide me through this since I think that I am missing something very basic here. I will try to make plunker. Thanks for replying
+1 please. I have the same question
I found the solution. You must pass them as "userName" and "avatar" on left side message.