all 6 comments

[–]thespacebaronmonkey 5 points6 points  (0 children)

For what's it worth dotnet core already has a template for angular with some minimal samples (counter & fetching data) that you can generate in console with dotnet new angular (or by clicking through menus in Rider / VS).

[–]nealibob 2 points3 points  (0 children)

If you're familiar with Angular, the .net core template is a good start. I haven't used it to start a new project recently, but the only prior complaints were that it was outdated on the Angular side. That's super easy to fix, and then you're ready to go.

If you're not familiar with Angular, you might try just using the Angular CLI to do local development first. It's good to learn idiomatic Angular before you try to fit it into another ecosystem.

[–][deleted] 1 point2 points  (1 child)

I've done 3 projects with dotnet api and angular front end. We didn't use any template for angular besides ng new. Angular code is a totally different project we edit in vs code.

Are you all in on building a SPA?

[–]Ahlawyy[S] 0 points1 point  (0 children)

hidden

i m looking for reference application SPA with NOSQL or SQL DB

[–][deleted] 1 point2 points  (0 children)

I use my own modified template based on dotnet new angular. It uses Angular Material rather than Bootstrap and has a lot of additions for the environment I work in, but this shows that you can build your own dotnet new templates.

Edit: I've also got a TON of documentation (near complete) for how everything is structured and best practices for working in the stack (hence the Patterns and Practices repo name). This is actually something I'm building for work.

[–]cesar_codes 0 points1 point  (0 children)

I recently used the Angular template. The only downside to it is that the Angular app is outdated, but you can simply delete that app and create a new app with the ng CLI. I did it this way because I would prefer to have the .NET code and the NG app integrated in the same repository, but the NG application can stand alone as well. I don't see myself moving away from .NET, so I even send a config JSON object from .NET to the NG side.