hh
Posts: 0
Joined: Sat Feb 04, 2017 10:07 am

populate html item from database

I need to retrieve html code from the database and add it to a html element but can't figure out how to avoid it to be treated as a string for the html objekt.

I have stored iframe objects in the database and will insert them in a html object and to be treated as html and not as string.

In db they are stored as string such as. .
When added to the html object they are surronded with ""

I use IONIC.

One more question.
If I want to handle a UI component from javascript and using ionic. How do I retrieve the object from javascript. Most examples seems to use Jquery and also an object named appery which don't exist in ionic.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

populate html item from database

Please set these values to the html component with a directive "ng-html-bind":
https://docs.angularjs.org/api/ng/dir...

Return to “Issues”