随笔分类 -  ionic

摘要:1、controller中添加$cacheFactory服务。 eg:从home页传递name到login页面显示 PS:销毁对象cache 删除键值对name 以下例子传参方式均为:从home页面传递name和age到login页面: 2、接收参数的页面url中添加参数,以/:a/:b...等的方 阅读全文
posted @ 2017-05-26 15:35 Zella 阅读(275) 评论(0) 推荐(0)
摘要:1、angularJs写法 2、ionic工程写法 说明: 1、directives.js为js文件夹下的文件,所有的自定义指令都写在该文件中。 2、restrict为指令的调用方式,默认为EA E 作为元素名使用 A 作为属性使用 C 作为类名使用 M 作为注释使用 3、templateUrl,该 阅读全文
posted @ 2017-05-24 16:04 Zella 阅读(217) 评论(0) 推荐(0)
摘要:1、添加css,img,js,lib,templates文件夹2、添加manifest.json和service-worker.js3、添加index.html文件 4、在js文件夹下新建app.js文件 5、在js文件夹下新建controllers.js文件 说明: 1、新建的HTML文件在tem 阅读全文
posted @ 2017-05-24 14:44 Zella 阅读(186) 评论(0) 推荐(0)