• 请不要在回答技术问题时复制粘贴 AI 生成的内容
97world
V2EX  ›  程序员

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

  •  
  •   97world · Dec 17, 2015 · 3459 views
    This topic created in 3806 days ago, the information mentioned may be changed or developed.
    之前公司要求用 AngularJS 来做一个项目.
    项目虽然做好了,但是回过头来看,很多地方用得不规范,例如把大量的业务逻辑都往 Controller 这里塞, Services 只是简单的封装了对 RESTful API 的呼叫, Directive 的使用又是非常少,测试用例也是几乎没写.
    想参考一些规范的 AngularJS 项目,试着更深入的学习一下
    7 replies    2015-12-17 13:35:07 +08:00
    Phant0m
        1
    Phant0m  
       Dec 17, 2015
    Phant0m
        2
    Phant0m  
       Dec 17, 2015
    也可以了解下这个: https://v2ex.com/t/168015#reply31
    learnshare
        3
    learnshare  
       Dec 17, 2015
    beginor
        4
    beginor  
       Dec 17, 2015   ❤️ 1
    推荐一个 [Angular Style Guide]( https://github.com/johnpapa/angular-styleguide), 我在项目中就严格遵守这个规范, 效果很好。

    我在项目中融合了 RequireJS 实现动态加载注册 Controller 和 Service , 效果挺好的。
    stiekel
        5
    stiekel  
       Dec 17, 2015   ❤️ 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
       Dec 17, 2015
    @Phant0m
    @learnshare
    @beginor
    @stiekel
    谢谢四位的推荐~
    hantsy
        7
    hantsy  
       Dec 17, 2015
    Google 官方的 Tutorial 不错。 https://docs.angularjs.org/tutorial

    我的 https://github.com/hantsy
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5389 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 06:45 · PVG 14:45 · LAX 23:45 · JFK 02:45
    ♥ Do have faith in what you're doing.