rbtLong
rbtLong

Reputation: 1582

Nested Component Without Using Directives

According to John Papa's tutorial, he uses the directives attribute inside of @component when depending on another component. Apparently, directives has been removed in RC6 and the alternative is to use it inside of @ngModule in declarations.

Is there another alternative that could allow us to nest components without needed to include all of them inside of @ngModule?

https://github.com/angular/angular/commit/4a740f2

Upvotes: 1

Views: 78

Answers (1)

Günter Zöchbauer
Günter Zöchbauer

Reputation: 657937

No, @NgModule() is the way to go since RC6 and there are no alternatives.

There was quite some discussion but I haven't seen any serious arguments why this would be needed.

Upvotes: 1

Related Questions