1

I want to create an ASP.NET Core 6 MVC web app with AngularJS - it this possible?

I tried in Visual Studio 2022 to create such a web app with Angular, but that is a newer version of Angular. Can I change this version to AngularJS, or should I create this project another way?

I need to have AngularJS on frontend side of this project.

3
  • 3
    Yes, it's very much possible to do. The default templates don't use AngularJS because it's a deprecated and unsupported technology, and it would be very unwise to use it for a new project at this time. You should be using the new Angular instead. But you don't need to use templates. Just create your AngularJS project, and set up your ASP.NET Core 6 MVC project to serve up its index.html page. Commented Jul 5, 2023 at 19:04
  • 1
    So i need to create project ASP.NET Core 6 MVC, then download AngularJS and add it to my mvc project yes? Commented Jul 5, 2023 at 19:07
  • 1
    Pretty much, yeah. Though it's hard for me to imagine a scenario where using AngularJS for a new project is the right approach at this point in history. I'd seriously question that requirement. Commented Jul 5, 2023 at 21:07

1 Answer 1

1

In theory it works, You need to download related library to your MVC project and add it in your view. Maybe you can refer to this tutorial. But as StriplingWarrior said, AngularJs is a deprecated and unsupported technology, It is very strange to use such an old front-end framework on a new version of the Net.

Sign up to request clarification or add additional context in comments.

4 Comments

Thank You, I have one more question (maybe it is stupid question) Can I make WEB API in NET7 and frontend with angularJS? What is difference betwen web application net core with angular and web api with frontend angular?
Hi @Amatour, Do you mean the template Asp.net Core with angular in visual studio? It is just a project about Asp.net Core Web api as backend and Angular as frontend
Yes thank You. If i add AngularJS like in this instruction, I will be use JavaScrpit. To use Typescript Should I install some more packages yes?
Sry, I haven't tried it before, But from this link, you can use typescript in angularJs normally.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.