If I have on the page
- <script src="/bower_components/steal/steal.js" main="app/component/my-component/" config="/stealconfig.js"></script>
Is it possible to wait for
app/component/my-component/ be loaded on the page and then
append it to the DOM?
I
thought to add next line:
- <script>
-
- System.import('app/component/my-component/').then(function(){
-
- $(function(){
-
- $('body').append(can.stache('<my-component></my- component >')())
-
- })
- })
-
- </script>
But it seems not to
work. Some times 'apps/common/promo-page/'
is loaded even before stealconfig