Angular 2 RC5 ng

In our project, we are moving from Angular 2 RC4 to RC5.

Question: With the introduction of ngModules, will barrels (index files) become unnecessary? Or can you use both in parallel? How to use these 2 concepts?

+4
source share
1 answer

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.

+6
source

Source: https://habr.com/ru/post/1654549/


All Articles