Try to set the moduleId property to module.id for module-relative loading 
of the templateUrl in your @Component decorator, as follows:

@Component({
  moduleId: module.id,
  templateUrl: 'operator/open.component.html'
})



Op woensdag 18 januari 2017 21:55:17 UTC+1 schreef [email protected]:
>
> Hello!
>
> I started my project with the QuickStart seed 
> <https://github.com/angular/quickstart> and added a sub directory 
> "operator" for a component in the app folder. Now my problem is, that the 
> templateUrl must be absolute in order to work:
>
> @Component({
>     templateUrl: './app/operator/open.component.html'
>
> I don't know what the cause is, but templateUrl: ./open.component.html 
> doesn't work (404 ./open.component.html). This was never the case before 
> and every example I found uses the relative/short path.
>
> So does somebody have a clue what is going wrong? There was one Post 
> mentioning the <base href="/" element, but I already tried with and without 
> it. And I need it anyway for the Router module.
>
> Best regards,
> Billie
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to