Context menu using popover

I am making a chat application using Ionic & Angular. Actually i was trying to get a context menu using cordova. But eventually there is no plugins for that. Now after that i thought of making context menu using popover for particular chat messages or users just like whatsApp. when i tried ionic popover i got error that ionic popover is not injected, i saw a topic in forum, it says you have to upgrade it , i tried upgrading it. then whole app was not working properly . Please help me on this.

Thanks in Advance