With angularjs we learned to structure our code like this.
item.module.js:
angular.module('name', [ deps ] )
item.component.js
angular.module('name')
.component({ declaration, controller: 'controller', template: template})
item.controller.js
angular.module('name')
.controller('controller', code..);
item.html
<html>
With angular however
a component is declared in a single file with it's controller
@Component({ templateUrl: template })
export class BlaComponent {}
Is there a way to put these two declarations is separate files? Is this desired (pro's / con's)
Bonus question (i'm still googling this one): Is there any propper guide for large projects and file structure?