2
0
Fork 0

updated cordova example

This commit is contained in:
Willem 2016-11-17 20:09:10 +01:00
parent 78d1baa89a
commit 2ed29b26ce
3 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View File

@ -19,6 +19,7 @@ example/app_mobile/plugins/*
!example/app_mobile/plugins/android.json
!example/app_mobile/plugins/fetch.json
example/app_mobile/www/es5-ff-spa-loader.js
example/app_mobile/www/es5-ff-spa-loader.css
# Ignore binary files
*.o

View File

@ -123,7 +123,7 @@ A javascript library providing server defined loading of assets for a single pag
The functions in FFSpaLoader.*;
* start(cb) = Starts loading your application, optional argument used for done or error callback.
* start(cb) = Starts loading your application, optional function argument can be used for done and/or error callback.
* clearServerUrl(cb) = Clears the cached server url so after reload user get promted again.
* clearCache(cb) = Clears the cached values so after reload all assets get refetched.
@ -212,7 +212,6 @@ A javascript library providing server defined loading of assets for a single pag
* css: set tag.media = 'only you';
* css: add media in resouces
* Add in browser tests
* example: Cache angular template for offline mode.
* cache limits for soft fallback to injecting ?
## Contributing

View File

@ -12,7 +12,7 @@
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="es5-ff-spa-loader.js"></script>
<script>
FFSpaLoader.options.debug.enable = true;
FFSpaLoader.options.boot.debug.enable = true;
FFSpaLoader.options.boot.angular.modules.push('exampleUI');
FFSpaLoader.options.server.assets = '/static/spa-client-resources';
FFSpaLoader.options.server.header.response['X-My-Api'] = 'noknok';