J
J
justyork2017-07-27 12:37:16
Angular
justyork, 2017-07-27 12:37:16

How to process text into a component in Angular2?

Hello. I am new to Angular and am looking for help from experienced users. My task is as follows.
I send text to angular 2 via api, in which there is a piece of text that needs to be processed in the right way, for example, text:


consultation about your case.
{{settings:address}}, phone {{settings:phone}

I need to replace {{settings:address}} with the address contained in the database in the settings.
In principle, in this case, I can process it on the server side, and change it there, but in addition to the settings, I also need to call forms and so on, i.e. needs to be handled somehow. Can this text be interpreted as a component from angular or is there another way?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question