So, I have an application folder in which both my component and its basic template are stored. My question is the line in the component where I indicate the location of my template in @Component decorator, for example.
@Component({
selector: "add-site-view",
templateUrl:"app/add-site.template.html"
})
why do I need to explicitly specify "app / template.html" and not use "./" instead of "app /"?
source
share