Lazy loading angularJs View Dynamically
submitted on 25/03/2015 by Codicode
+ infos Config Embed

Lazy loading angularJs View Dynamically

Programatically adding Html to the DOM from regular javascript outside the angularJs context and compiling the view at runtime without using angularJs directives.

The newly added html will be dynamically binded to its correspending controller.
Framework 1 :
Framework 2 :
+ Js file(s) :
+ Css file(s) :
Apply

Link :

Direct http link :

Fork button :

Html code :

Embed preview :

Copy the following html code to your page to embed the preview,
To include many previews on a single page, just repeat the first line.
You can change the width, height and border color (bcolor).
<div class="refork-widget" code="4bc" style="width:100%;height:200px;" bcolor="#ccc"></div>
<script type="text/javascript" src="//snippet.run/d/z.js"></script>
HTML
CSS
Javascript
©2013 Copyright snippet.run Privacy - Terms of use - About - Contact