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

Jun 2017
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, 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'.