review: patch up attribute-directives and server-communication.
This commit is contained in:
parent
cdb162376e
commit
56b20ce877
|
@ -19,7 +19,6 @@ block includes
|
|||
* [pass values into the directive using data binding](#bindings)
|
||||
* [使用数据绑定把值传到指令中](#bindings)
|
||||
|
||||
Try the <live-example></live-example>.
|
||||
试试<live-example></live-example>。
|
||||
|
||||
## Directives overview
|
||||
|
|
|
@ -927,6 +927,8 @@ block wikipedia-jsonp+
|
|||
The `providers` array in the component metadata specifies the Angular `JSONP_PROVIDERS` collection that supports the `Jsonp` service.
|
||||
We register that collection at the component level to make `Jsonp` injectable in the `WikipediaService`.
|
||||
|
||||
组件元数据中的`providers`数组指定了支持`Jsonp`服务的Angular `JSONP_PROVIDERS`。我们在组件级别注册这个`JSONP_PROVIDERS`,让`Jsonp`可以被注入到`WikipediaService`中。
|
||||
|
||||
The component presents an `<input>` element *search box* to gather search terms from the user.
|
||||
and calls a `search(term)` method after each `keyup` event.
|
||||
|
||||
|
|
Loading…
Reference in New Issue