【文件属性】:
文件名称:angular-localforage-migrations:在 Angular 应用中迁移 localForage 数据
文件大小:12KB
文件格式:ZIP
更新时间:2021-06-16 01:57:57
JavaScript
角本地牧草迁移
在 Angular 应用中迁移 localForage 数据
用法
1.依赖angular-localforage-migrations模块
// commonjs users:
var app = angular . module ( 'my-app' , [ require ( 'angular-localforage-migrations' ) ] )
// everyone else:
var app = angular . module ( 'my-app' , [ 'angular-localforage-migrations' ] )
2. 在配置块中向migrationsProvider添加迁移
app . config ( function ( migrationsProvider ) {
migrationsProvider . add ( {
【文件预览】:
angular-localforage-migrations-master
----karma-base-config.js(2KB)
----bower.json(582B)
----karma-browserify.conf.js(483B)
----LICENSE.mit(1KB)
----example()
--------index.html(1KB)
--------bower.json(254B)
--------app.js(2KB)
----test()
--------migrations-test.js(5KB)
--------migrations-provider-test.js(2KB)
----README.md(3KB)
----.gitignore(79B)
----index.js(4KB)
----karma.conf.js(237B)
----CHANGELOG.md(1KB)
----package.json(1KB)