I have a project built in ASP.NET Core MVC. Using the built in identity functionality. I would like to serve certain views using angular 4 and certain ones using Razor, depending on the functionality required and the migration. For example I have a schedule route and would like anything under /Schedule to be loaded using Angular, as a result loading the schedule.component.html.
I have attempted by installing Angular under a ClientApp folder under wwwroot. I have an index.html that loads the dependencies, this works however I am unsure of how to load the schedule component when using the schedule root.
Will appreciate any help thanks.
Index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Home</title>
<script src="ClientApp/node_modules/core-js/client/shim.min.js"></script>
<script src="ClientApp/node_modules/zone.js/dist/zone.js"></script>
<script src="ClientApp/node_modules/reflect-metadata/Reflect.js"></script>
<script src="ClientApp/node_modules/systemjs/dist/system.src.js"></script>
<script src="systemjs.config.js"></script>
<script>
System.import('app')
.then(
function () { console.log('started application'); },
function (err) { console.log('error starting application');
console.log(err); });
</script>
</head>
<app-root>Loading..</app-root>
<body>
</body>
</html>