Hi, I was a little shy at reponding that I didn't understand, so this
weekend we had a meeting and I asked 3 friends for help :)
What we could figure out is in this plunker
<http://plnkr.co/edit/xiZzmKnw7IyfNMUXoMUR?p=preview>. The problem is
that the *script.js* is not getting executed, while style.css seems to
be ok.
In my understanding is that would be the way to load Angular and the
rest of the App...
How can I load the scripts and execute them? maybe load them from
original index.js if I can get a list of them somewhere...
Just to clarify: my embedded platform is quite powerfull, but I am
programing at the socket level in C++.
I am able to serve some files but have no JS at all.
Uptate is possible but it is a real PITA and requires fisical
intervention :(
Alain Mouette
=== Projetos especiais: <http://lnkd.in/dEu8cNq> ===
On 21-11-2015 04:25, Sander Elias wrote:
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:
|
<scriptsrc="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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
--
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.