We have webserver with an IIS website and an IIS Web Application underneath. The web application's root is: http://website/webapplication/. When deployed I get the following error in the browser:
http://website/app/app.component.html 404 (Not Found)
app/app.component.html 404 (Not Found)
My component:
@Component({
selector: "app",
templateUrl: "./app/app.component.html"
})
The file app.component.html does indeed not exist under /app/app.component.html, but it does exist at: /webapplication/app/app.component.html.
So, my conclusion is that Angular only works when in the root of a website.
In the html header I have set the tag to: <base href="/webapplication/">
, but that doesn't help.
It seems like a normal setup, I can't believe the template resolving in Angular fails, I must be missing something... Does anyone know a solution to this?