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 <[email protected]> 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 [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.
>

-- 
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