parent
d86f25f9d0
commit
67052ac925
|
@ -349,8 +349,8 @@ code-example(format="").
|
|||
|
||||
.alert.is-important
|
||||
:marked
|
||||
If a component, directive, or pipe belongs to a module in the `imports` array, _DON'T_ declare it in the `declarations` array.
|
||||
If you wrote it and it should belong to this module, _DO_ declare it in the `declarations` array.
|
||||
If a component, directive, or pipe belongs to a module in the `imports` array, _DON'T_ declare it in the `declarations` array.
|
||||
If you wrote it and it should belong to this module, _DO_ declare it in the `declarations` array.
|
||||
|
||||
如果一个组件、指令或管道出现在模块的`imports`数组中,就说明它是外来模块,_不要_再到`declarations`数组中声明它们。
|
||||
如果你自己写的它,并且它属于当前模块,_就要_把它声明在`declarations`数组中。
|
||||
|
|
Loading…
Reference in New Issue