AngularJS Directives Cookbook

Fernando Monteiro

  • 出版商: Packt Publishing
  • 出版日期: 2015-11-30
  • 售價: $1,700
  • 貴賓價: 9.5$1,615
  • 語言: 英文
  • 頁數: 206
  • 裝訂: Paperback
  • ISBN: 1784395897
  • ISBN-13: 9781784395896
  • 相關分類: Angular
  • 下單後立即進貨 (約3~4週)

商品描述

Extend the capabilities of AngularJS and build dynamic web applications by creating customized directives with this selection of more than 30 recipes

About This Book

  • Learn how to extend HTML templates in new ways to build even better web applications with exceptional interface components
  • Build reusable directives for large-scale AngularJS applications
  • Create even sophisticated and impressive modern web apps with ease

Who This Book Is For

This book is for developers with AngularJS experience who want to extend their knowledge to create or customize directives in any type of AngularJS application. Some experience of modern tools such as Yeoman and Bower would be helpful, but is not a requirement.

What You Will Learn

  • Build and customize external HTML templates, and create simple, effective directives for common interface components
  • Learn how to use Controller function and any Bootstrap UI directives to manipulate the DOM and how to transform any UI library into AngularJS directives
  • Construct an AngularJS application to use shared components and validate your HTML5
  • Discover how to use jQuery events and manipulate the DOM using jQuery UI inside AngularJS applications
  • Create custom directives for ongoing projects using Yeoman generators, and find out how to implement standalone directives
  • Build reusable directives for Large AngularJS applications and extend directives to use dynamic templates
  • Write unit test for directives using the Karma runner and Jasmine's behavior-driven development framework

In Detail

AngularJS directives are at the center of what makes it such an exciting – and important - web development framework. With directives, you can take greater control over HTML elements on your web pages – they ‘direct' Angular's HTML compiler to behave in the way you want it to. It makes building modern web applications a much more expressive experience, and allows you to focus more closely on improving the way that user interaction impacts the DOM and the way your app manages data. If you're already using Angular, you probably recognize the power of directives to transform the way you understand and build your projects – but customizing and creating your own directives to harness AngularJS to its full potential can be more challenging. This cookbook shows you how to do just that – it's a valuable resource that demonstrates how to use directives at every stage in the workflow.

Packed with an extensive range of solutions and tips that AngularJS developers shouldn't do without, you'll find out how to make the most of directives. You'll find recipes demonstrating how to build a number of different user interface components with directives, so you can take complete control over how users interact with your application. You'll also learn how directives can simplify the way you work by creating reusable directives – by customizing them with Yeoman you can be confident that you're application has the robust architecture that forms the bedrock of the best user experiences. You'll also find recipes that will help you learn how to unit test directives, so you can be confident in the reliability and performance of your application.

Whether you're looking for guidance to dive deeper into AngularJS directives, or you want a reliable resource, relevant to today's web development challenges, AngularJS Directives Cookbook delivers everything you need in an easily accessible way.

Style and approach

This book easy-to-follow guide is packed with hands-on recipes to help you build modular AngularJS applications with custom directives. It presents tips on using the best tools and various ways to use these tools for front-end development.

商品描述(中文翻譯)

擴展 AngularJS 的功能,通過創建定制指令來構建動態網絡應用程序,本書提供了30多個食譜選擇。

關於本書:
- 學習如何以新的方式擴展 HTML 模板,以構建更好的網絡應用程序和出色的界面組件。
- 為大型 AngularJS 應用程序構建可重用的指令。
- 輕鬆創建複雜而令人印象深刻的現代網絡應用程序。

本書適合有 AngularJS 經驗的開發人員,他們希望擴展自己的知識,以在任何類型的 AngularJS 應用程序中創建或自定義指令。對於像 Yeoman 和 Bower 這樣的現代工具有一些經驗會有所幫助,但不是必需的。

你將學到:
- 構建和自定義外部 HTML 模板,並為常見的界面組件創建簡單而有效的指令。
- 學習如何使用 Controller 函數和任何 Bootstrap UI 指令來操作 DOM,以及如何將任何 UI 库轉換為 AngularJS 指令。
- 構建 AngularJS 應用程序以使用共享組件並驗證你的 HTML5。
- 發現如何在 AngularJS 應用程序中使用 jQuery 事件並使用 jQuery UI 操作 DOM。
- 使用 Yeoman 生成器為正在進行的項目創建自定義指令,並了解如何實現獨立指令。
- 為大型 AngularJS 應用程序構建可重用的指令,並擴展指令以使用動態模板。
- 使用 Karma 測試運行器和 Jasmine 的行為驅動開發框架為指令編寫單元測試。

AngularJS 指令是使其成為令人興奮和重要的網絡開發框架的核心。通過指令,您可以更好地控制網頁上的 HTML 元素-它們“指導” Angular 的 HTML 編譯器以按照您希望的方式運作。它使構建現代網絡應用程序成為一種更具表達性的體驗,並使您能夠更密切地關注改善用戶交互對 DOM 的影響以及應用程序管理數據的方式。如果您已經在使用 Angular,您可能已經認識到指令的力量,可以改變您理解和構建項目的方式-但自定義和創建自己的指令以充分利用 AngularJS 的潛力可能更具挑戰性。本書將向您展示如何做到這一點-它是一個寶貴的資源,演示了如何在工作流程的每個階段使用指令。

本書充滿了廣泛的解決方案和提示,AngularJS 開發人員不能錯過,您將了解如何充分利用指令。您將找到使用指令構建多種不同的用戶界面組件的食譜,以便您可以完全控制用戶與應用程序的交互方式。您還將學習指令如何通過創建可重用的指令簡化您的工作方式-通過使用 Yeoman 自定義它們,您可以確信您的應用程序具有最佳用戶體驗的堅實架構。您還將找到幫助您學習如何對指令進行單元測試的食譜,以便您可以對應用程序的可靠性和性能充滿信心。

無論您是尋求深入研究 AngularJS 指令的指導,還是需要一個與當今網絡開發挑戰相關的可靠資源,AngularJS 指令食譜都以易於理解的方式提供了您所需的一切。

本書以易於跟隨的指南形式呈現,充滿了實用的食譜,幫助您使用自定義指令構建模塊化的 AngularJS 應用程序。它提供了使用最佳工具的提示,以及使用這些工具進行前端開發的各種方法。