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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -