Learning Angular for .NET Developers
上QQ阅读APP看书,第一时间看更新

Directives

We walked through the Angular component and the way it is decorated. The @Component itself is a directive with a template configured in the metadata. So, a directive is a component without a template, and @directive is used in Typescript to attach metadata to it.