上一页 1 ··· 452 453 454 455 456 457 458 459 460 ··· 466 下一页
摘要: new $q constructor Reject it Resolve it Last Resolved Value {{vm.resolveData | json}} Last Rejected Value {{vm.reje... 阅读全文
posted @ 2014-11-13 22:54 Zhentiw 阅读(374) 评论(0) 推荐(0) 编辑
摘要: Password --------------------------------- //ngChange $scope.onChange=function(){ var newVal =... 阅读全文
posted @ 2014-11-13 18:17 Zhentiw 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: $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 阅读(310) 评论(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 阅读(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 阅读(416) 评论(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 阅读(219) 评论(0) 推荐(0) 编辑
上一页 1 ··· 452 453 454 455 456 457 458 459 460 ··· 466 下一页