New 2.0 Angular Template - Home Controller/View ASP.NET Authentication #97

Closed
opened 2025-08-09 17:14:59 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @aherrick on 4/17/2018

I've created a file/new of the 2.0 Angular Template.

I've noticed that the angular cli index.html page is not mapped through a Controller/Action when loading.

What I want is for Controller Home/Action Index to return the index.html page that angular-cli JSON is configured.

Otherwise, how would I apply ASP.NET Auth against my main App? Traditionally I would add an AUTHORIZE attribute to my Controller.

Another way of asking this...

How can I host the SPA on an MVC/CSHTML page instead of the angular cli index.html? Is it even possible... should I just be using the 1.0 Angular Template at this point?

*Originally created by @aherrick on 4/17/2018* I've created a file/new of the 2.0 Angular Template. I've noticed that the angular cli index.html page is not mapped through a Controller/Action when loading. What I want is for Controller Home/Action Index to return the index.html page that angular-cli JSON is configured. Otherwise, how would I apply ASP.NET Auth against my main App? Traditionally I would add an AUTHORIZE attribute to my Controller. Another way of asking this... How can I host the SPA on an MVC/CSHTML page instead of the angular cli index.html? Is it even possible... should I just be using the 1.0 Angular Template at this point?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#97
No description provided.