上一页 1 ··· 447 448 449 450 451 452 453 454 455 ··· 460 下一页
摘要: For the $watch in last article, we watch 'user.password', actually it is a string.If you watch 'user', this object and we do something like:function W... 阅读全文
posted @ 2014-11-13 07:25 Zhentiw 阅读(289) 评论(0) 推荐(0) 编辑
摘要: /** * Created by Answer1215 on 11/13/2014. */function MainCtrl($scope){ function isLongEnough (pwd) { return pwd.length > 4; } functio... 阅读全文
posted @ 2014-11-13 07:19 Zhentiw 阅读(512) 评论(0) 推荐(0) 编辑
摘要: FACTORIESConvert thezombiesfixture to a Factory GirlFactorycalled:zombie.test/fixture/zombies.ymlzombie: name: 'Sally' graveyard: 'Valley Dim'Answer... 阅读全文
posted @ 2014-11-12 22:15 Zhentiw 阅读(503) 评论(0) 推荐(0) 编辑
摘要: Express RoutesLet's create an express route that acceptsGETrequests on'/tweets'and responds by sending back a static HTML file.Create aGETroute for'/t... 阅读全文
posted @ 2014-11-12 04:01 Zhentiw 阅读(921) 评论(0) 推荐(0) 编辑
摘要: The idea: This post we are going to learn how to build a Firebase Forage with object related database.Form the pic we can see that there are two objec... 阅读全文
posted @ 2014-11-11 22:10 Zhentiw 阅读(415) 评论(0) 推荐(0) 编辑
摘要: Using $firebaseSimpleLogin service.Here we use three methods for login, logout, register and getCurrentUser.Be sure to open the Email and Password con... 阅读全文
posted @ 2014-11-11 04:43 Zhentiw 阅读(443) 评论(0) 推荐(0) 编辑
摘要: /** * Created by Answer1215 on 11/9/2014. */var app = angular.module('app', ['firebase']);app.constant('FIREBASE_URI', 'https://zhentiw-angular-fire.f... 阅读全文
posted @ 2014-11-10 20:44 Zhentiw 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Basic angularFire options: $save, $add and $remove.The way connect firebase:var app = angular.module('app', ['firebase']); var ref = new Firebase(F... 阅读全文
posted @ 2014-11-10 07:00 Zhentiw 阅读(906) 评论(0) 推荐(0) 编辑
摘要: There are two ways to naviagting between state: 1. Using $state service, $state.go() 2. Using ui-serf diretive $state.go Inject $state service. .contr 阅读全文
posted @ 2014-11-09 21:41 Zhentiw 阅读(192) 评论(0) 推荐(0) 编辑
摘要: When using ui-route, we want to pass the information with the url.Example:angular.module('categories.bookmarks', [ 'categories.bookmarks.create', ... 阅读全文
posted @ 2014-11-09 18:38 Zhentiw 阅读(371) 评论(0) 推荐(0) 编辑
上一页 1 ··· 447 448 449 450 451 452 453 454 455 ··· 460 下一页