Git Product home page Git Product logo

angularjs-tw'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-tw's People

Watchers

 avatar  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.