上一页 1 ··· 485 486 487 488 489 490 491 492 493 ··· 498 下一页
摘要: $watchGroup can monitor an array or expression.We watch both email and password by using the same callback function. $scope.$watchGroup(['user.emai... 阅读全文
posted @ 2014-11-13 18:08 Zhentiw 阅读(323) 评论(0) 推荐(0)
摘要: 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 阅读(299) 评论(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 阅读(524) 评论(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 阅读(523) 评论(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 阅读(934) 评论(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 阅读(430) 评论(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 阅读(459) 评论(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 阅读(230) 评论(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 阅读(918) 评论(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 阅读(206) 评论(0) 推荐(0)
上一页 1 ··· 485 486 487 488 489 490 491 492 493 ··· 498 下一页