谷歌角框架 - 值得冒这个险? [英] Google Angular Framework - Worth the risk?

查看:162
本文介绍了谷歌角框架 - 值得冒这个险?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被要求建立为我们的客户的一个小型Web应用程序,并认为这可能是尝试构建Web应用程序不同的框架的好机会。大部分我们所建立的应用程序都是基于asp.net web表单和我们还没有做过任何的MVC架构,但我渴望开始使用正确的工具构建Web应用程序以更结构化的方式。

I have been asked to build a small web application for one of our clients and think it might be a good opportunity to try out a different framework for building web applications. Most of the applications we build are based on asp.net web forms and we have no yet done anything in an MVC architecture but I am eager to start building web applications in a more structured manner with the right tools.

我一直在研究之类的东西asp.net MVC和看起来相当不错的喜欢,但我不知道有什么用类似的谷歌角框架可说的。

I have been researching things like asp.net MVC and the likes which look quite good but I am wondering is there anything to be said for using something like the Google Angular Framework.

如果可能,我还是希望能够使用C#写我的服务器端code,我还没有足够的研究角度知道这甚至有可能,但我认为我可以使用Web服务。

If possible I would still like to be able to write my server side code using c# and I have not researched angular enough to know if this is even possible, although I assume I could use web services.

有没有人有开发使用一个应用程序的经验角度,如果是这样,怎么着它,你可以点我的方向是正确的一些教程?

Has anyone had any experience with developing an app using angular and if so, how was it and can you point me in the right direction for some tutorials?

推荐答案

我们一直致力于开发在AngularJS在过去几个月的Swing的胖客户端应用程序的端口,我认为这是值得推荐。至于学习资源去的,检查出的官方项目现场(并请务必阅读本教程)和邮件列表(作者是非常有用)。

We have been developing a port of a Swing fat-client application in AngularJS for the last couple of months and I think it is worth recommending. As far as learning resources go, check out the official project site (and be sure to read the tutorial) and the mailing list (the authors are very helpful).

好东西:


  • 伟大的可测试性

  • 双向数据绑定是一个非常强大的功能,它可以是非常有帮助,一旦你得到它

  • 海事组织AngularJS模板是比使用数据 - 属性或特殊CSS类来标记做一些元素脆少得多

  • 大大减少了需要使用jQuery插件,因为实施AngularJS这个功能是很容易的(东西像树,标签,手风琴等)

坏的东西:


  • 学习曲线似乎pretty陡峭的(我没有太大的问题,但我见过一些人与它的斗争)

  • 在AngularJS验证吸暂且(一个新的实现是在路上)

  • 不是所有的库/ jQuery插件与角发挥很好,通常你必须将它们包装

  • 的API仍在打磨,所以我们期待打破的变化(不与频繁的发布和很好的changelog一个大问题,虽然)

  • 性能是确定直至几千绑定的网页上 - 其中的大部分时间是不是一种限制,但有这样的情况时,这可能是一个问题

一些指针(如果你决定学习AngularJS):

Some pointers (if you ever decide to learn AngularJS):


  • 有些人真的过度使用的小部件。在我的经验,更好的做法是使用HTML谐音+服务,只用零星的小部件

  • 阅读源库code - 这是学习的角度
  • 的东西最好的地方
  • 在服务/控制器没有DOM操作

  • 如果您使用的CSS类绑定到的事件,你就错了

  • some people really overuse widgets. In my experience, it's much better to use HTML "partials" + services, and only use widgets sporadically.
  • read source code of the library - it's the best place to learn stuff about angular
  • no DOM manipulation in services/controllers
  • if you use css classes to bind to events, you are doing it wrong

这篇关于谷歌角框架 - 值得冒这个险?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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