We have a web server with an IIS website and an IIS web application. Web application root: http: // website / webapplication / . When deploying, 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 app.component.html file does not really exist in /app/app.component.html , but it exists: /webapplication/app/app.component.html .
So, I came to the conclusion that Angular2 only works in the root directory of a website. In the html header, I set the tag: <base href="/webapplication/">but this does not help.
, , , Angular 2 , - ... - ?