Thanks Pete, I will give it a go. Data loads fine, processedData.js contains the data and is loaded with a normal script tag. I just have issues where angular try and load views / templates etc on demand. And then same origin / file:// policies in the browsers block the http requests
On Sat, Jul 11, 2015 at 10:26 PM, Pete Bacon Darwin <p...@bacondarwin.com> wrote: > You can preload the `$templateCache` using `<script type="ng-template">` > or similar inside your HTML file or do it programmatically similar to > https://www.npmjs.com/package/ng-html2js > > But this won't help with getting data from files. > > On 11 July 2015 at 07:36, Jaco De Villiers <jac...@gmail.com> wrote: > >> Is there is way to mimic the angular structures in a single file? I need >> to ship small web sites that can work offline on a computer. I know that I >> can host some sort of web server and have that serve up the small website, >> but would prefer to still point to file://<<path>\index.html in stead. >> >> Pointing to the file source prevents angular from loading views / >> templates / etc because of some browser restrictions. I want to use grun / >> gulp to package the angular web site into a single file (JavaScript, CSS >> excluded) into a single file but still have the same single page / routing >> as if the web site was structured correctly. >> >> Any ideas? >> >> Regards >> Jaco >> >> -- >> 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 angular+unsubscr...@googlegroups.com. >> To post to this group, send email to angular@googlegroups.com. >> 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 a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/GEai2j2pCMI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > angular+unsubscr...@googlegroups.com. > To post to this group, send email to angular@googlegroups.com. > 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.