I am faced with a situation in which I need to show images if the chat messages contain image links, but currently I am only displaying the links as text.
One idea I had was to check for the lastIndexOf('.') and extract the file extension to match it using ng-if, but I don't think this would be a clean solution. Therefore, I am searching for a library or Angular built-in module that can handle this automatically for me, similar to:
linkify (Linkify is a JavaScript plugin that identifies links in plain text and converts them into HTML tags)