修订完ngmodule和npm packages
This commit is contained in:
parent
f014896658
commit
f21bc6730a
|
@ -77,8 +77,6 @@ block includes
|
|||
|
||||
[解决冲突](#resolve-conflicts "当两指令具有相同的选择器时……")
|
||||
|
||||
<!-- CF: See my comment in the "Resolve diretive conflicts" section below proposing renaming or reorganizing that section. -->
|
||||
|
||||
* [Feature modules](#feature-modules "Partition the app into feature modules")
|
||||
|
||||
[特性模块](#feature-modules "把应用分割成一些特性模块")
|
||||
|
@ -1090,9 +1088,12 @@ a#contact-module-v1
|
|||
|
||||
:marked
|
||||
### Refactor the _AppModule_
|
||||
|
||||
### 重构 *AppModule*
|
||||
|
||||
Return to the `AppModule` and remove everything specific to the contact feature set.
|
||||
|
||||
返回`AppModule`并移除专属于联系人特性下的任何东西。
|
||||
|
||||
* Delete the contact import statements.
|
||||
|
||||
|
|
|
@ -332,11 +332,11 @@ a(id="why-peer-dependencies")
|
|||
|
||||
>A **dependency** says, "I need this thing directly available to *me*."
|
||||
>
|
||||
>A **peerDependency** says, "If you want to use me, you need this thing available to *you*."
|
||||
|
||||
>**dependency**说:“我需要这东西*对我*直接可用。”
|
||||
>**dependency**说:“我需要这东西*对我*是直接可用的。”
|
||||
>
|
||||
>**peerDependency**说:“如果你想使用我,你得先确保这东西*对你*可用”
|
||||
>A **peerDependency** says, "If you want to use me, you need this thing available to *you*."
|
||||
>
|
||||
>**peerDependency**说:“如果你想使用我,你得先确保这东西*对你*是可用的”
|
||||
|
||||
The Angular `package.json` specifies several *peer dependency* packages,
|
||||
each pinned to a particular version of a third-party package.
|
||||
|
@ -397,4 +397,4 @@ a(id="why-peer-dependencies")
|
|||
When this feature request is implemented, Angular will switch from *peerDependencies* to *optionalPeerDependencies* for all polyfills.
|
||||
|
||||
不过,有一个npm的新特性申请,叫做“可选的peerDependencies”,它将会允许我们更好的对这种关系建模。
|
||||
一旦它被实现了,Angular将把所有填充库从*peerDependencies*区切换到*optionalPeerDependencies*区。
|
||||
一旦它被实现了,Angular将把所有填充库从*peerDependencies*区切换到*optionalPeerDependencies*去。
|
||||
|
|
Loading…
Reference in New Issue