My component shows up but i get an error message when the page is loaded. I can\'t seem to solve the error message at all after looking at a bunch of resources.
Erro
Also ensure you have a
tag at the beginning of the tag or provided by
boostrap(...)
as explained in Angular 2 router no base href set
/
you might need to make the app navigate to an initial route imperatively like explained in Angular2 router (@angular/router), how to set default route?Hint: The @angular/router
router also is deprecated as @angular/router-deprecated
and a new router will be shipped again :-/ If you are about to switch to @angular/router
it's probably better to postpone until the new and hopefully final router is available.