Mastering AngularJS Directives
暫譯: 精通 AngularJS 指令

Josh Kurz

  • 出版商: Packt Publishing
  • 出版日期: 2014-05-18
  • 售價: $1,760
  • 貴賓價: 9.5$1,672
  • 語言: 英文
  • 頁數: 210
  • 裝訂: Paperback
  • ISBN: 178398158X
  • ISBN-13: 9781783981588
  • 相關分類: Angular
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Develop, maintain, and test production-ready directives for any AngularJS-based application.

Overview

  • Explore the options available for creating directives, by reviewing detailed explanations and real-world examples
  • Dissect the life cycle of a directive and understand why they are the base of the AngularJS framework
  • Discover how to create structured, maintainable, and testable directives through a step-by-step, hands-on approach to AngularJS

In Detail

AngularJS offers many features that allow the creation of rich, compelling web applications. Directives are by far the most important feature to incorporate into any skill set. This book starts off by teaching basic and advanced techniques for the art of directive writing. The different techniques are taught by a series of examples that showcase when and why certain directives should be created, based on given use cases. It moves on to explain more about how to harness the potential of AngularJS, by incorporating external libraries, optimizing code, and using brand new functions such as animations.

Finally, the book includes an overview of the techniques and best practices that AngularJS developers need to keep in mind while developing their own applications. The overall goal of this book is to teach different aspects of directive writing that can be consumed by all levels.

What you will learn from this book

  • Master the ability to alter and transform DOM in an AngularJS context
  • Utilize and customize a directive that uses the core animation service
  • Incorporate any third-party library, with Angular Zen, which has a focus on advanced DOM manipulation
  • Discover the advantages of directives that yield the ability to compile dynamic templates
  • Understand every directive API option and their available uses
  • Find out how and why different types of tests are used on all types of directives
  • Optimize and enhance your application with custom directives
  • Explore what the future has in store for AngularJS directives and how it will tie into the present style of writing directives

Approach

This book takes a hands-on, step-by-step approach that helps the reader focus on the most important points and learn exactly what they need. All of the directives in the book have live examples that go along with them, and there is a strong focus on how tests are incorporated into all types of directives.

Who this book is written for

Mastering AngularJS Directives is intended for developers who have experience with AngularJS and have a need for creating or customizing directives in any type of AngularJS application. This is a niche topic that focuses on very specific fundamental concepts of directive writing. This book is targeted at developers who have tried their hand at AngularJS, but would like to master it by learning how to make their own directives.

商品描述(中文翻譯)

開發、維護和測試任何基於 AngularJS 的應用程式的生產就緒指令。

概述
- 探索創建指令的可用選項,通過詳細的解釋和實際範例進行回顧
- 剖析指令的生命週期,了解為什麼它們是 AngularJS 框架的基礎
- 通過逐步的實作方法,發現如何創建結構化、可維護和可測試的指令

詳細內容
AngularJS 提供了許多功能,允許創建豐富且引人入勝的網頁應用程式。指令無疑是任何技能組合中最重要的功能。本書首先教授指令編寫的基本和進階技術。不同的技術通過一系列範例進行教學,展示在特定用例下何時以及為什麼應該創建某些指令。接著,書中將解釋如何利用 AngularJS 的潛力,通過整合外部庫、優化代碼以及使用全新的功能,如動畫。

最後,本書包括 AngularJS 開發人員在開發自己應用程式時需要記住的技術和最佳實踐的概述。本書的整體目標是教授指令編寫的不同方面,讓所有層級的讀者都能理解。

您將從本書中學到的內容
- 精通在 AngularJS 環境中修改和轉換 DOM 的能力
- 利用和自定義使用核心動畫服務的指令
- 整合任何第三方庫,使用 Angular Zen,專注於進階的 DOM 操作
- 發現能夠編譯動態模板的指令的優勢
- 理解每個指令 API 選項及其可用用途
- 了解不同類型的測試如何以及為什麼在所有類型的指令上使用
- 通過自定義指令優化和增強您的應用程式
- 探索 AngularJS 指令的未來發展,以及它將如何與當前的指令編寫風格相結合

方法
本書採取實作導向的逐步方法,幫助讀者專注於最重要的要點,並準確學習所需的內容。本書中的所有指令都有實時範例,並強調測試如何融入所有類型的指令中。

本書的讀者對象
《精通 AngularJS 指令》適合有 AngularJS 經驗的開發人員,並需要在任何類型的 AngularJS 應用程式中創建或自定義指令。這是一個專門的主題,專注於指令編寫的非常具體的基本概念。本書針對那些已經嘗試過 AngularJS 的開發人員,但希望通過學習如何創建自己的指令來精通它。