使用angular而不是ASP.NET [英] Using angular instead of ASP.NET

查看:143
本文介绍了使用angular而不是ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要一个新项目,所以我需要决定一个技术堆栈。

我我比Cavascript更精通C#但是我有一些Angular的经验。



所以这是要求,我们将从现有的应用程序中提取数据但是可能是我们的应用程序在以后阶段拥有自己的数据库的要求。



到目前为止,我们决定实施一个web api来与现有的应用程序通信。 />
然后我们将有一个web项目,所以我的问题是在angular或asp.net mvc中编写前面的en有用吗?



我尝试了什么:



我在asp.net和angular都有经验,但我更了解asp.net。

Hi

I have a requirement for a new project coming up, so I need to decide on a tech stack.
I am more proficient in C# than in javascript but I have some experience in Angular.

So here is the requirement, we will be pulling data from an existing application but there might be a requirement for our app to have its own DB at a later stage.

So far we decided to implement a web api to comunicate with the existing application.
Then we will have a web project as well so my question is that would it be beneficial to write the front en in angular or in asp.net mvc?

What I have tried:

I have experience in both asp.net and angular but I know asp.net better.

推荐答案

让我分一些回答你的问题,因为你对这里的各个方面感到困惑。

Let me answer your question in parts, because you are confused on various aspects here.
引用:

在angular或asp.net mvc中编写前端en是否有益?

would it be beneficial to write the front en in angular or in asp.net mvc?

ASP.NET MVC不是一个前端框架,它是一个完整的Web开发框架,其中V部分用于View。生成视图,即使这样,您应该考虑使用适当的前端框架。 Angular,Bootstrap,Knockout ......任何一个都可以在那里使用,ASP.NET不会阻止你这样做。



我使用Bootstrap作为我的前端,而后端仍然是ASP.NET Core,它允许我构建应用程序,Web API(正如你在那里提到的那样) !)和其他东西。对于您的任务,我建议使用ASP.NET Core作为后端 - 如果您不需要跨平台解决方案,即使ASP.NET MVC也会很好。然后,您可以使用Angular或您想要的前端框架构建视图。

ASP.NET MVC is not a front-end framework, it is a complete web development framework, where the "V" part is for View. Views are generated and even then, you should consider using a proper front-end framework. Angular, Bootstrap, Knockout... Any one can be used there, ASP.NET does not prevent you from doing that.

I use Bootstrap for my front-end, and backend is still ASP.NET Core which lets me build the application, Web API (as you have also mentioned it there!) and other stuff. For your task, I would recommend using ASP.NET Core as a backend — even ASP.NET MVC would be good, if you do not require a cross-platform solution. Then you can build the Views with Angular, or what-so-ever front-end framework you want.

引用:

我在asp.net和angular都有经验,但我更了解asp.net。

I have experience in both asp.net and angular but I know asp.net better.

当你甚至不能告诉视图不被禁止使用任何JavaScript框架时,你对ASP.NET有多了解?

How well do you know ASP.NET, when you cannot even tell that the Views are not prohibited from using any JavaScript framework?


Angular.js很适合单页应用程序而MVC是在dotnet过去和未来的中间打点。



你知道MVC好吗?如果没有选择MVC



你知道Angular.js吗?如果没有选择Angular.js,如果你有作为前端Web开发人员工作的野心



不了解MVC,并且有野心可能使用.net核心(顺便说一句,我会说使用它而不是你用于新事物的任何替代品),选择mvc,因为它在整体架构和流程方面详细阐述了相同的技术。

<建议:考虑以上所有内容并选择.net内核,以便您可以跨平台部署它,并且可以轻松地将代码部署到代码中进行调试,因为它是开源的,并且比传统的.net更快的MVC。 />


我自己去找mvc,但是如果你喜欢MVVM的角度并且不用担心长期维护而不是更快的开发时间,那么为什么不详细说明关于你在Angular的经历。据说Angular我的调试不好



或许可以通过网络搜索替代方案的优缺点:)
Angular.js fits single page applications well and MVC is smack in the middle of dotnet past and future.

Do you know MVC well ? If not chose MVC

Do you know Angular.js well? If not choose Angular.js if you have ambition of working as a front end web developer

Don't know MVC that well, and have ambition of perhaps using .net core (and btw i'd say use that instead of any of the alternatives you have for new things ), choose mvc as it is elaborating on the same technology in terms of overall architectures and flow.

Recommendation: Consider none of the above and go for .net core so you can deploy it cross platform and easiliy step into code for debugging as it is open source and have much faster MVC than traditional .net

I'd go for mvc myself, but if you like the MVVM of angular and don't worry about long term maintenance as opposed to quicker development time, then why not elaborate on your experience in Angular. Angular i reputedly bad for debugging

Perhaps do a web search for pros and cons of the alternatives:)


这篇关于使用angular而不是ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆