I bought this template Angular 4 template
I've been Googling for the past two weeks and read a lot of articles on how to set an Angular 4 project. This is one of the articles I followed
Example to setup Angular 4 with MVC
I installed Node and Angular CLI. Created an MVC project. Copied the files from the template to the MVC project. I did ng build and ng serve and the index.html page comes up.
At work, we use AngularJS with ASP.Net MVC. We have the AngularJS code along with MVC controllers. Projects have ASP.Net's Identity/Membership, the login page, etc.
So far so good.
I followed the article to "The Development Workflow and Live Reloading" section.
1. In Angular 4, how can I remove index.html and have Razor (index.cshtml) as the first page? I want to have a login page with Asp.Net's Identity (I'm customizing the Angular 4 template I got...don't want to use it out of the box...I want to integrate the design into ASP.Net project I'm creating)
If you look at the article I posted, it has this section "The ASP.NET MVC Index Razor View Page". I don't quite understand it but is that something I need to do to integrate ASP.Net with Angular 4?
2. Should I even be using an Angular 4 project with ASP.Net? I'm thinking I have to because I want to use webconfig settings, ASP.Net's Identity/Membership for login, MVC controllers....just like how we did AngularJS
3. This is another article Another example
If you look at "Index.cshtml" code section, Razor has references to the JS files and one of them is this
but I don't have system.src.js. I read I don't need this because I used Angular CLI to get up the project.
4. This is another example (but Angular 2) that looks like I need to add references to Index.cshtml to change the Angular 4's index.html start page to Razor
Example 3 but with Angualr 2
I've bought templates from Themeforest before. I have several jQuery/HTML ones and one AngularJS that I've been able to integrate to ASP.Net and customize the template.
How can do I with Angular 4? how can I change the index.html to razor and then use MVC controllers along with Angular 4 Components and Services?