These are chat archives for AngularClass/angular2-webpack-starter

4th
Jun 2017
Roman
@romaroid
Jun 04 2017 12:45
Hi everyone I have an issue with AOT compilation, when I use 'templateUrl' in an app-root component (in the angualr-starter it is 'app' component https://github.com/AngularClass/angular-starter/blob/master/src/app/app.component.ts), I get an error in a browser 'Error: Cannot find primary outlet to load', but if I use - template: '<router-outlet></router-outlet>' everything works fine. Could someone explain, why it doesn't work with 'templateUrl'.