Hi Alain.

I do not know how powerful your embedded platform is, and how good it's 
interpretation of HTML and JS is.
When both are ok, and there is some processing power, my index.html would 
look something like this:

<script src="preloader.js"></script>

That's it. 
Then in preloader.js you can build up whatever you want. Probably something 
like this:

fetch('realIndex.html)
  .then(extractHTML) // this processes the fetch result, and returns just 
the html content of the file
  .then(html => document.innerHTML = html)

By splitting out that part to a separate .js file, you can easily change 
the way you load stuff. 

>From here on, it's just a normal app. It might be that you need to manually 
boot AngularJS, but I don't think that's needed.

Does this help you a bit?
Regards
Sander


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to