Xinrui Ma
Xinrui Ma

Reputation: 2105

Why angular-cli do not generate a shared folder when creating a component?

I am using angular-cli, it suppose to create a component with a sub folder called shared with index.ts, but I am not seeing that.

enter image description here

Upvotes: 1

Views: 456

Answers (1)

Brocco
Brocco

Reputation: 64853

This was taken out with the addition of NgModule as of rc5. The need to nest components inside of shared directories is against the pattern of declaring them within a given module.

Upvotes: 2

Related Questions