The import statements in Angular 2 can get pretty cumbersome if you’re using a lot of services, models, directives etc in any specific component. Looking at the basic “QuickStart”, the app.component.ts doesn’t seem very obtuse. import {Component} from ‘angular2/core’; @Component({ selector: ‘my-app’, template: ‘

Source: Shayne Boyer: Angular 2 : Organization Using {barrels}

Posted in: Articles.
Last Modified: July 26, 2017

Leave a Reply