上一页 1 ··· 442 443 444 445 446 447 448 449 450 ··· 466 下一页
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-01-05 03:27 Zhentiw 阅读(6) 评论(0) 推荐(0) 编辑
摘要: We'velooked at lazy loading with ocLazyLoadpreviously, but what if we are using ui-router and want to lazy load modules when we change states?angular.... 阅读全文
posted @ 2015-01-04 05:48 Zhentiw 阅读(803) 评论(0) 推荐(0) 编辑
摘要: With the ocLazyLoad you can load AngularJS modules on demand. This is very handy for runtime loading of Angular modules in large applications. Simple 阅读全文
posted @ 2015-01-04 05:42 Zhentiw 阅读(976) 评论(0) 推荐(0) 编辑
摘要: ui-router's states and AngularJS directives have much in common. Let's explores the similarities between the two and how these patterns have emerged i... 阅读全文
posted @ 2015-01-04 05:32 Zhentiw 阅读(437) 评论(0) 推荐(0) 编辑
摘要: Scope resolution of our Angular documents works exactly the same way scope resolution works in plain, old Javascript. The only difference here is that... 阅读全文
posted @ 2015-01-03 04:15 Zhentiw 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Currently, the server.js is going way too long. In the real world application, it is likely that we are going to deal with more routers, whichi means ... 阅读全文
posted @ 2015-01-02 22:18 Zhentiw 阅读(193) 评论(0) 推荐(0) 编辑
摘要: For server.js, we update the code by using route instance. By using this, we can remove some duplicate code.For example:app.get('/people', function(re... 阅读全文
posted @ 2015-01-02 18:46 Zhentiw 阅读(299) 评论(0) 推荐(0) 编辑
摘要: In ES5, we have for ... in:var phones = ["iPhone", "Nexus", "Nokia"];for(i in phones){ console.log(phones[i]);}//iPhone//Nexus//NokiaWhat we get fr... 阅读全文
posted @ 2015-01-02 05:44 Zhentiw 阅读(635) 评论(0) 推荐(0) 编辑
摘要: ES6 provides Map, it is a set of k-v pair. Key can be number, string, object, function and even undefined.var m = new Map();Methods:1. set(k,v)m.set("... 阅读全文
posted @ 2015-01-02 05:43 Zhentiw 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Es6 provides "Set", it likes array but the data inside should be unqiue."Set" is a construct function, you should call:var s = new Set();Methods:1.add... 阅读全文
posted @ 2015-01-02 05:35 Zhentiw 阅读(194) 评论(0) 推荐(0) 编辑
上一页 1 ··· 442 443 444 445 446 447 448 449 450 ··· 466 下一页