updated cordova example
This commit is contained in:
parent
78d1baa89a
commit
2ed29b26ce
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -19,6 +19,7 @@ example/app_mobile/plugins/*
|
||||||
!example/app_mobile/plugins/android.json
|
!example/app_mobile/plugins/android.json
|
||||||
!example/app_mobile/plugins/fetch.json
|
!example/app_mobile/plugins/fetch.json
|
||||||
example/app_mobile/www/es5-ff-spa-loader.js
|
example/app_mobile/www/es5-ff-spa-loader.js
|
||||||
|
example/app_mobile/www/es5-ff-spa-loader.css
|
||||||
|
|
||||||
# Ignore binary files
|
# Ignore binary files
|
||||||
*.o
|
*.o
|
||||||
|
|
|
@ -123,7 +123,7 @@ A javascript library providing server defined loading of assets for a single pag
|
||||||
|
|
||||||
The functions in FFSpaLoader.*;
|
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.
|
* 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.
|
* 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: set tag.media = 'only you';
|
||||||
* css: add media in resouces
|
* css: add media in resouces
|
||||||
* Add in browser tests
|
* Add in browser tests
|
||||||
* example: Cache angular template for offline mode.
|
|
||||||
* cache limits for soft fallback to injecting ?
|
* cache limits for soft fallback to injecting ?
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<script type="text/javascript" src="cordova.js"></script>
|
<script type="text/javascript" src="cordova.js"></script>
|
||||||
<script type="text/javascript" src="es5-ff-spa-loader.js"></script>
|
<script type="text/javascript" src="es5-ff-spa-loader.js"></script>
|
||||||
<script>
|
<script>
|
||||||
FFSpaLoader.options.debug.enable = true;
|
FFSpaLoader.options.boot.debug.enable = true;
|
||||||
FFSpaLoader.options.boot.angular.modules.push('exampleUI');
|
FFSpaLoader.options.boot.angular.modules.push('exampleUI');
|
||||||
FFSpaLoader.options.server.assets = '/static/spa-client-resources';
|
FFSpaLoader.options.server.assets = '/static/spa-client-resources';
|
||||||
FFSpaLoader.options.server.header.response['X-My-Api'] = 'noknok';
|
FFSpaLoader.options.server.header.response['X-My-Api'] = 'noknok';
|
||||||
|
|
Loading…
Reference in a new issue