Open zerosyn opened 10 years ago
What do you mean by "new it again"? Is the root element of the VM replaced by pjax?
Sorry, I've discard that plan and can't find the case now.
I wrote a test and found that "new it again" actually work. (http://jsfiddle.net/7Lveu/1/) Howerver, if there's a rebuild method, it would be easier to handle this case.
I'm using vue and pjax in the same page. The html is replaced when navigated with pjax history back, but the VM doesn't work with the new DOM with same html, even after new it again.
Is there any way to rebuild the VM with all the old options and the new DOM? Or is there any workaround?