Answer the question
In order to leave comments, you need to log in
How to load templates in AngularJS?
Hello.
I am writing a chat using AngularJS in the client.
The appearance of messages in the chat is implemented through $compile
. That is, in the Angular code there is a recorded HTML code, it is not very convenient to read this + there is a problem when HTML code is sent to the chat, which is not strange.
Question: what and how to use in order to load a ready-made template with variables for each message, and so that there would be no such problems with the HTML code that users send?
Answer the question
In order to leave comments, you need to log in
The appearance of messages in the chat is implemented via $compile.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question