Barrels should simplify the import of TypeScript and are optional.
They are no longer recommended by the Angular2 team, because they often cause issues with circular dependencies and similar ones.
@NgModule()are compilation units of Angular2. @NgModule()and are a completely different and unrelated concept and binding.
source
share