装饰器@page,@ component和@app在离子2应用程序中意味着什么?

ahe*_*ins 3 decorator typescript ionic2 angular

我见过@app@page@component似乎可以互换使用,我不知道有什么区别.

ionic2文档在这方面非常糟糕,因此离子2应用程序的这些装饰器之间的根本区别是什么?何时使用一个而不是另一个?

Jos*_*cal 6

@Page和@App是不推荐使用的装饰器,您必须只关注@Component

angular2使用一种名为ReflectMetadata的东西,基本上是装饰器为你的类添加一些重要的元数据