A
A
Aidar2016-09-06 11:10:52
Angular
Aidar, 2016-09-06 11:10:52

How to insert large html code in one line?

Hello! There is a huge piece of html / angular code and stuffing it onto the page is somehow stupid. The question arose whether it was somehow possible to insert it on the page in one small line. The type in the template will be <div id="myblock"></div>, and when generated, the expanded code will be in this place already in the browser. Someone may say: "What's the point?" or "It was necessary in Angular to do less code in the html part", but so far I have not reached a clean and compact code.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Samsin, 2016-09-06
@psixodyb

ng-include

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question