V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
97world
V2EX  ›  程序员

有什么开源的 AngularJS 项目可以学习?如果项目能够包括测试用例就更好

  •  
  •   97world · 2015-12-17 10:20:36 +08:00 · 2852 次点击
    这是一个创建于 3055 天前的主题,其中的信息可能已经有所发展或是发生改变。
    之前公司要求用 AngularJS 来做一个项目.
    项目虽然做好了,但是回过头来看,很多地方用得不规范,例如把大量的业务逻辑都往 Controller 这里塞, Services 只是简单的封装了对 RESTful API 的呼叫, Directive 的使用又是非常少,测试用例也是几乎没写.
    想参考一些规范的 AngularJS 项目,试着更深入的学习一下
    7 条回复    2015-12-17 13:35:07 +08:00
    Phant0m
        1
    Phant0m  
       2015-12-17 10:39:49 +08:00
    Phant0m
        2
    Phant0m  
       2015-12-17 10:43:20 +08:00
    也可以了解下这个: https://v2ex.com/t/168015#reply31
    learnshare
        3
    learnshare  
       2015-12-17 10:50:16 +08:00
    beginor
        4
    beginor  
       2015-12-17 10:53:09 +08:00   ❤️ 1
    推荐一个 [Angular Style Guide]( https://github.com/johnpapa/angular-styleguide), 我在项目中就严格遵守这个规范, 效果很好。

    我在项目中融合了 RequireJS 实现动态加载注册 Controller 和 Service , 效果挺好的。
    stiekel
        5
    stiekel  
       2015-12-17 11:22:51 +08:00   ❤️ 2
    http://todomvc.com/
    这个项目专做演示,使用各种前端框架把同样的功能都实现了一遍,当然有 Angular 的。
    demo http://todomvc.com/examples/angularjs/#/
    github https://github.com/tastejs/todomvc/tree/master/examples/angularjs
    97world
        6
    97world  
    OP
       2015-12-17 12:59:02 +08:00
    @Phant0m
    @learnshare
    @beginor
    @stiekel
    谢谢四位的推荐~
    hantsy
        7
    hantsy  
       2015-12-17 13:35:07 +08:00
    Google 官方的 Tutorial 不错。 https://docs.angularjs.org/tutorial

    我的 https://github.com/hantsy
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1219 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 17:56 · PVG 01:56 · LAX 10:56 · JFK 13:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.