i am using angular 4 in mvc architecture . wheneve i gona pass mvc view in template url in the app.component.ts file it shows some error. can i pass the mvc view in the type script file or i have to create a html file in app folder.
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
templateUrl: '/Home/Index.cshtml',
})
export class AppComponent {
name = '';
}
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="Registeration">
<my-app>Loading AppComponent content here ...</my-app>
<input type="text" [(ngmodel)]="name"/>
<p>{{name}}</p>
</div>