GithubHelp home page GithubHelp logo

angularjs-cn's Introduction

#AngularJS

AngularJS

"AngularJS"中译本 -《AngularJS》

更少的代码, 更多的乐趣, 增强结构化Web应用程序的生产力


#目录

##第1章 AngularJS简介

  • 概念
    • 客户端模板
    • 模型, 视图, 控制器(MVC)
    • 数据绑定
    • 依赖注入
    • 指令
  • 示例: 购物车
  • 小结

##第2章 AngularJS应用程序剖析

  • 引用Angular
    • 加载脚本
    • 使用ng-app声明Angular界限
  • 模型, 视图, 控制器
  • 模板和数据绑定
    • 显示文本
    • 表单输入
    • 关于不唐突JavaScript的一些话
    • 列表, 表格和其他重复元素
    • 显示和隐藏
    • CSS类和样式
    • src和href属性注意事项
    • 表达式
    • 使用控制器分离用户界面职责
    • 使用作用域发布模型数据
    • 使用$watch观察模型变化
    • watch()中的性能注意事项
  • 使用模块组织依赖
    • 我需要多少模块?
  • 使用过滤器格式化数据
  • 使用路由和$location更新视图
    • index.html
    • list.html
    • detail.html
    • controller.js
  • 对话服务器
  • 使用指令更新DOM
    • index.html
    • controller.js
  • 验证用户输入
  • 小结

##第3章 AngularJS开发

  • 项目组织
  • 工具
    • IDEs
  • 运行你的应用程序
    • 使用Yeoman
    • 不使用Yeoman
  • 测试AngularJS
    • Karma
  • 单元测试
  • 端到端/集成测试
  • 编译
  • 其他优秀工具
    • 调试
    • Batarang
  • Yeoman: 优化你的工作流程
    • 安装Yeoman
    • 启动一个新的AngularJS项目
    • 运行服务器
    • 添加新的路由, 视图和控制器
    • 测试的故事
    • 构建项目
  • 使用RequireJS整合AngularJS

##第4章 分析一个AngularJS应用程序

  • 应用程序
  • 模型, 控制器和模板之间的关系
  • 模型
  • 控制器, 指令和服务
    • 服务
    • 指令
    • 控制器
  • 模板
  • 测试
    • 单元测试
    • 脚本测试

##第5章 与服务器通信

  • $http通信
    • 进一步配置请求
    • 设置HTTP头
    • 缓存响应
    • 转换请求和响应
  • 单元测试
  • 使用RESTful资源
    • 声明
    • 自定义方法
    • 无回调(如果你真的希望这样)
    • 简化服务短操作
    • ngResource单元测试
  • $q和Promise
  • 截取响应
  • 安全注意事项
    • JSON漏洞
    • XSRF

##第6章 指令

  • 指令和HTML验证
  • API预览
    • 为你的指令命名
    • 指令定义对象
    • 编译和链接功能
    • 作用域
    • 操作DOM元素
    • 控制器
  • 小结

##第7章 其他关注点

  • $location
  • HTML5模式和Hashbang模式
  • AngularJS模块方法
    • 主方法在哪?
    • 加载和依赖
    • 快捷方法
  • $on, $emit和$broadcast之间的作用域通信
  • Cookies
  • 国际化和本地化
    • 在AngularJS中我能做什么?
    • 如何获取所有工作?
    • 常见问题
  • 净化HTML和模块
    • Linky

##第8章 备忘单和诀窍

  • 包装jQuery Datepicker
    • ng-model
    • 绑定select
    • 调用select
    • 其他示例
  • 团队列表应用程序: 过滤器和控制器通信
    • 搜索框
    • 组合框
    • 复选框
    • 重复
  • AngularJS中的文件上传
  • 使用Socket.IO
  • 一个简单的分页服务
  • 服务器和登录
  • 总结

##索引

译者按: 粗译, 如有理解错误还烦请大家纠正. 可以提交pull request, 也可以在issues中提出修正意见, 同时也可以给我发邮件提出修正意见.

angularjs-cn's People

Contributors

basecss avatar bluemsn avatar chenkan avatar deanxu avatar dhcn avatar edokeh avatar fancyoung avatar hueitan avatar jeffxenog avatar lun2u avatar slixurd avatar zzxadi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.