review: patch up attribute-directives and server-communication.

This commit is contained in:
Zhimin YE (Rex) 2016-08-16 12:31:47 +01:00
parent cdb162376e
commit 56b20ce877
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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.