examples/bootstrap4/dynamic-components.html
authorAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 08:32:45 +0000 (16:32 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 08:32:45 +0000 (16:32 +0800)
examples/bootstrap4/dynamic-components.html

index 1ad73ee..4cb16fa 100644 (file)
   </head>
   <body id="body">
     <script type="text/javascript">
-      Roo.onReady(function() {
-        a = new Dynamic.Component({ el: documnet.body } );
-        
-      });
+        Roo.onReady(function() {
+            new Dynamic.Component({ do_render: document.body } );
+        });
     </script>
   </body>
 </html>
\ No newline at end of file