Advanced Router - HTML in sc-view not appearing
See original GitHub issueI’ve been wrestling with this all day. If I put simple text inside <sc-view> then it shows the content. But if I add any html inside <sc-view> it won’t show, unless it’s the initial load of the page. I’ve been tinkering with _loadView in SCView. If I console out const newView
it will show <sc-view> with all of the HTML properly inside. It appears that it’s breaking down somewhere in:
newView.childNodes.forEach(node => {
this._view.appendChild(node);
});
this.appendChild(this._view);
Has anyone else experienced this?
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
angular - HTML view not displaying after routing to module
I have a nested side navigation menu and the issue is that it routes to the specified module but the view is not...
Read more >Develop Your First Extension - SuiteCommerce Developers
Go to Setup > SuiteCommerce Advanced > Extension Manager; Click New Activation; Select the appropriate web site and domain; Click on the ...
Read more >Building the screw advance box joint jig - YouTube
A compilation of my box joint jig video series from 2012, edited down to one 20-minute video. http://woodgears.ca/box_joint/jig. html … Show ...
Read more >Model View Controller (MVC) and Backbone.js
JavaScript must be enabled to correctly display this content ... Views do not define the HTML or CSS of a feature or component....
Read more >Cisco Catalyst IR1101 Rugged Series Router Hardware ...
No antenna is shipped with the IR1101 by default. Items Shipped with your Router. Unpack the box and verify that all items listed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not using
innerHTML
was a conscious decision. UsinginnerHTML
serializes the entire DOM to a string just to deserialize it right after. The current code should be doing exactly the same.I took the current
advanced-router
code and changed line 38 ofabout/index.html
toand it still works fine, both on initial page load as well as on navigation.
So I can’t reproduce, but I am curious as to what is going wrong on your end.
I’ve made the changes in the pull request. I’ll go ahead and close the issue.