Page 1 of 1

populate html item from database

Posted: Thu Feb 23, 2017 5:48 pm
by hh

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.


populate html item from database

Posted: Thu Feb 23, 2017 8:34 pm
by Serhii Kulibaba

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