Click here to Skip to main content
15,891,607 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWhere should I post my Angular 6 questions? Pin
jkirkerx23-Jul-18 7:01
professionaljkirkerx23-Jul-18 7:01 
AnswerRe: Where should I post my Angular 6 questions? Pin
Vincent Maverick Durano30-Jul-18 11:53
professionalVincent Maverick Durano30-Jul-18 11:53 
GeneralRe: Where should I post my Angular 6 questions? Pin
jkirkerx30-Jul-18 13:18
professionaljkirkerx30-Jul-18 13:18 
GeneralRe: Where should I post my Angular 6 questions? Pin
Vincent Maverick Durano31-Jul-18 4:01
professionalVincent Maverick Durano31-Jul-18 4:01 
QuestionUnable to send data from view to controller in Asp.Net MVC Pin
harish kashyap0114-Jul-18 8:05
harish kashyap0114-Jul-18 8:05 
AnswerRe: Unable to send data from view to controller in Asp.Net MVC Pin
Bryian Tan14-Jul-18 8:34
professionalBryian Tan14-Jul-18 8:34 
Question.Net Core 2.1 and MVC, playing around with Angular 6 Pin
jkirkerx13-Jul-18 12:21
professionaljkirkerx13-Jul-18 12:21 
AnswerRe: .Net Core 2.1 and MVC, playing around with Angular 6 Pin
Nathan Minier16-Jul-18 1:35
professionalNathan Minier16-Jul-18 1:35 
I honestly wouldn't recommend it. The purpose of Angular and other SPA starter frameworks is to push the rendering responsibility down to the client side; splitting that responsibility will only make the application harder to maintain as people will need to play the "where did this render?" game.

There's another important factor to consider, and I think it's the one that's tripping you up: the routing mechanism. Angular uses a routing mechanism that is completely separate from the one used by MVC. Those two need to be setup to agree with each other (or at least don't overlap) before anything else. If all rendering is in NG, the MVC router pretty much gets relegated to controller location for AJAX requests - which NG will play nicely with out of the box - but as soon as you need to serve pages all that changes.

So long answer short: the right way to use Angular in a .NET Core project is to not straddle your presentation layer between client and server. Let the client be your presentation layer, and only business/DAL logic on the server.
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor

GeneralRe: .Net Core 2.1 and MVC, playing around with Angular 6 Pin
jkirkerx16-Jul-18 6:43
professionaljkirkerx16-Jul-18 6:43 
AnswerRe: .Net Core 2.1 and Angular 6, styles and fonts Pin
jkirkerx17-Jul-18 12:46
professionaljkirkerx17-Jul-18 12:46 
GeneralRe: .Net Core 2.1 and Angular 6, styles and fonts Pin
jkirkerx17-Jul-18 13:44
professionaljkirkerx17-Jul-18 13:44 
QuestionConditionally Loading Partial View in a Page using Javascript Pin
indian14313-Jul-18 8:10
indian14313-Jul-18 8:10 
AnswerRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx13-Jul-18 12:13
professionaljkirkerx13-Jul-18 12:13 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14313-Jul-18 13:40
indian14313-Jul-18 13:40 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx16-Jul-18 6:37
professionaljkirkerx16-Jul-18 6:37 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14318-Jul-18 8:25
indian14318-Jul-18 8:25 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx18-Jul-18 8:36
professionaljkirkerx18-Jul-18 8:36 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14318-Jul-18 8:51
indian14318-Jul-18 8:51 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx18-Jul-18 9:00
professionaljkirkerx18-Jul-18 9:00 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14318-Jul-18 9:06
indian14318-Jul-18 9:06 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx18-Jul-18 9:13
professionaljkirkerx18-Jul-18 9:13 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14318-Jul-18 10:23
indian14318-Jul-18 10:23 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx18-Jul-18 10:26
professionaljkirkerx18-Jul-18 10:26 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14318-Jul-18 12:38
indian14318-Jul-18 12:38 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx18-Jul-18 13:12
professionaljkirkerx18-Jul-18 13:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.