E
E
EleGant232015-12-30 13:43:46
HTML
EleGant23, 2015-12-30 13:43:46

How to insert html markup from JSON file?

Good afternoon! There is a file with JSON data... it has a line with HTML markup... When I parse this JSON, the data from that line is inserted as text. And I need this markup to be inserted as part of the page with the functional code. I hope I explained it clearly...
All this is done on Angular.js

<ons-list-item modifier="chevron" class="list-item-container" ng-repeat="item in categories track by $index ">
<ons-row>
              <ons-col>
                <div class="name">
                  {{ item.org_name }}<br>
            {{ item.org_work_alias}}<br>
          
             {{ item.org_street_name }},  {{ item.adress_house }}<br>
           {{ item.org_tel}}
                </div>
              </ons-col>
              <ons-col width="40px"></ons-col>
            </ons-row>
          </ons-list-item>

The code is contained in {{ item.org_work_alias}}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kuroi, 2015-12-30
@Kuroi

For example, so
One question, why are you doing this? Is it possible to pass parameters and then collect them in html?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question