上一页 1 ··· 422 423 424 425 426 427 428 429 430 ··· 492 下一页
摘要: 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 阅读(349) 评论(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 阅读(262) 评论(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 阅读(352) 评论(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 阅读(177) 评论(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 阅读(294) 评论(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 阅读(739) 评论(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 阅读(320) 评论(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 阅读(182) 评论(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 阅读(448) 评论(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 阅读(309) 评论(0) 推荐(0)
上一页 1 ··· 422 423 424 425 426 427 428 429 430 ··· 492 下一页