javascript - How to retrieve innerHTML of the page using Angular2 -
i have 2 questions follow:
1) migrating ui of application jquery angular2. there feature user can modify ui layout through drag & drop , re-sizing of html div elements. user can add new divs/ sections in page.
while, storing data, looping through child elements, preparing json array holding child elements css attributes. while loading page back, again looping through array , appending elements , setting attributes. quite easy job achieve using jquery.
now, angular2, having difficulties achieving same. can bind [innerhtml] div, however, challenge having retrieve inner html of page.
any suggestion appreciated!!
2) there better way store page layout , parse while loading?
thanks!!
Comments
Post a Comment