上一页 1 ··· 429 430 431 432 433 434 435 436 437 ··· 499 下一页
摘要: The Observer object has the functions next() and error(). In this lesson we will see the other (and last) function available on observers, complete(), 阅读全文
posted @ 2016-04-10 23:27 Zhentiw 阅读(363) 评论(0) 推荐(0)
摘要: Well, on Windows costs a little bit effort to run docker. 1. You need to enable Virtulization: Oh hp Windows machine, you need to Turn off you laptop 阅读全文
posted @ 2016-04-10 23:05 Zhentiw 阅读(279) 评论(0) 推荐(0)
摘要: Whenever we are writing code, we need to remember that things may go wrong. If an error happens in a function, that error will be thrown. Errors can a 阅读全文
posted @ 2016-04-10 00:30 Zhentiw 阅读(371) 评论(0) 推荐(0)
摘要: Wouldn't it be nice if everyone ran the tests before committing code? With ghooks, you can automatically add a githook when dependencies are installed 阅读全文
posted @ 2016-04-08 00:54 Zhentiw 阅读(194) 评论(0) 推荐(0)
摘要: You can also use Promise for http: So for the service, you need to call toPromise() method: Then in your controller, you can get the Promise back: But 阅读全文
posted @ 2016-04-07 01:54 Zhentiw 阅读(310) 评论(0) 推荐(0)
摘要: Let's see how to track index when we use 'ngFor: <li *ngFor="#hero of heros | async; let i = index"> <hero-item [hero]="hero" (changed)="thisHero = $e 阅读全文
posted @ 2016-04-07 01:14 Zhentiw 阅读(767) 评论(1) 推荐(0)
摘要: Property Binding is bind property NOT attribute! So 'class' is attribute on DOM, but 'class.active' is an property. 'aria-label' is attribute, so need 阅读全文
posted @ 2016-04-06 03:23 Zhentiw 阅读(334) 评论(0) 推荐(0)
摘要: In Angular2, sometime we use @Output to pass data to parent component, then parent may pass the data down to another child component. When you want to 阅读全文
posted @ 2016-04-06 01:51 Zhentiw 阅读(204) 评论(0) 推荐(0)
摘要: When you want to access child component's method, you can use @ViewChild in the parent: Parent Component: Child Component: 阅读全文
posted @ 2016-04-05 01:00 Zhentiw 阅读(469) 评论(0) 推荐(0)
摘要: Just like create html page, you can create a svg tag by: Inside svg, x,y: control the position of element fill: control the color of element height, w 阅读全文
posted @ 2016-04-04 00:34 Zhentiw 阅读(332) 评论(0) 推荐(0)
上一页 1 ··· 429 430 431 432 433 434 435 436 437 ··· 499 下一页