Mastering AngularJS Directives

Josh Kurz

  • 出版商: Packt Publishing
  • 出版日期: 2014-05-18
  • 售價: $1,650
  • 貴賓價: 9.5$1,568
  • 語言: 英文
  • 頁數: 210
  • 裝訂: Paperback
  • ISBN: 178398158X
  • ISBN-13: 9781783981588
  • 相關分類: Angular
  • 下單後立即進貨 (約3~4週)

商品描述

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的能力。
- 利用和自定義使用核心動畫服務的指令。
- 整合任何第三方庫,使用專注於高級DOM操作的Angular Zen。
- 發現具有編譯動態模板能力的指令的優勢。
- 理解每個指令API選項及其可用用途。
- 了解在所有類型的指令上使用不同類型的測試的方法和原因。
- 通過自定義指令優化和增強應用程式。
- 探索AngularJS指令的未來發展方向,以及它如何與目前的指令編寫風格相結合。

方法:
本書採用了實踐、逐步的方法,幫助讀者專注於最重要的要點,並學習他們所需的內容。書中的所有指令都有相應的實例,並且強調如何在各種類型的指令中整合測試。

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