【问题标题】:What is component--directive with template in angular?什么是带有角度模板的组件指令?
【发布时间】:2018-07-10 11:03:34
【问题描述】:

我正在使用 Angular 应用程序,我主要参考 Angular 的官方文档,我发现 Angular 应用程序中有三种类型的指令,请参见下图。

现在我的问题是我知道结构指令和属性指令但是我没有找到任何关于 component--directive with template 的信息。如果您了解 component--directive,需要您的帮助。

【问题讨论】:

  • Component = directive with template.
  • 这只是一个组件,用@Component注解的东西;这是一种指令,文档中有很多关于它们的内容!
  • @jonrsharpe:有道理。感谢您的评论。

标签: angular


【解决方案1】:

Component 指令什么都不是,它只是一个带有装饰器@Component({}) 的组件,其中包括模板和样式表。有关组件的详细信息,请参阅:Tutorials Logic | Component and Module

【讨论】:

    猜你喜欢
    • 2017-03-02
    • 2013-11-25
    • 2020-01-21
    • 1970-01-01
    • 1970-01-01
    • 2017-04-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-02
    相关资源
    最近更新 更多