AngularJS Directives

Alex Vanston

  • 出版商: Packt Publishing
  • 出版日期: 2013-08-30
  • 售價: $1,330
  • 貴賓價: 9.5$1,264
  • 語言: 英文
  • 頁數: 110
  • 裝訂: Paperback
  • ISBN: 1783280336
  • ISBN-13: 9781783280339
  • 相關分類: Angular
  • 海外代購書籍(需單獨結帳)
    無現貨庫存(No stock available)

買這商品的人也買了...

相關主題

商品描述

Intermediate JavaScript developers could take a big step forward with this essential step-by-step tutorial to AngularJS directives. By the end you'll be building dynamic web applications with multiple modules.

Overview

  • Learn how to build an AngularJS directive
  • Create extendable modules for plug-and-play usability
  • Build apps that react in real-time to changes in your data model

In Detail

AngularJS, propelled by Google, is quickly becoming one of the most popular JavaScript MVC frameworks available, working to invert the development paradigm and bring data-driven modularity to the web frontend. Directives serve as the core building blocks in AngularJS and enable you to create reusable models that mold around your data structures and breathe new life into the intersection of HTML and JavaScript.

AngularJS Directives serves as an in-depth study of some of the core features of AngularJS and provides you with all the knowledge you need to create fully dynamic web applications that respond in real-time to changes in data. You'll learn how to build directives from the ground up as well as some of the best practices for architecting them. By the end of this book, you'll be able to create a web application comprised of multiple modules all working together seamlessly to provide the best possible user experience.

AngularJS Directives starts by investigating the best practices for single-page application development overall before diving into how AngularJS directives fulfill those goals. At each step, you'll learn both the how and why of what we're building, and by the end, you'll not only know the facts necessary to create a directive, but you’ll also have the knowledge to decide how best to assemble it.

You'll also learn why it's best to build applications with the data-model as your foundation, how to craft new dynamic modules that communicate with each other, how to build widgets that can be embedded in third-party websites, and even how to create custom inputs so your users can intuitively interact with your data. In AngularJS Directives, you'll learn all the necessary tools to begin architecting your own directives and how to use them in the construction of a more dynamic Web.

What you will learn from this book

  • Craft a dynamic module that reflects data changes in real-time
  • Create an interconnected single-page application
  • Build third-party widgets
  • Consume existing content and integrate it into your directive
  • Integrate AngularJS with jQuery plugins
  • Communicate with other modules via messaging
  • Unit test your AngularJS directive
  • Set up and execute browser functionality tests with the Angular Scenario Runner

Approach

This book uses a practical, step-by-step approach, starting with how to build directives from the ground up before moving on to creating web applications comprised of multiple modules all working together to provide the best user experience possible.

Who this book is written for

This book is intended for intermediate JavaScript developers who are looking to enhance their understanding of single-page web application development with a focus on AngularJS and the JavaScript MVC frameworks.

It is expected that readers will understand basic JavaScript patterns and idioms and can recognize JSON formatted data.

商品描述(中文翻譯)

中級的JavaScript開發人員可以通過這本關於AngularJS指令的基礎教程,向前邁出一大步。到最後,你將能夠建立具有多個模塊的動態網絡應用程序。

概述:
- 學習如何建立AngularJS指令
- 創建可擴展的模塊,以實現即插即用的可用性
- 構建根據數據模型變化實時響應的應用程序

詳細內容:
AngularJS是由Google推動的,正在迅速成為最受歡迎的JavaScript MVC框架之一,它致力於顛覆開發範式,為Web前端帶來數據驅動的模塊化。指令是AngularJS的核心構建塊,它使您能夠創建可重用的模型,使其適應您的數據結構,並為HTML和JavaScript的交集注入新的生命。

《AngularJS指令》是對AngularJS的一項深入研究,它提供了創建實時響應數據變化的完全動態Web應用程序所需的所有知識。您將學習如何從頭開始構建指令,以及一些最佳實踐方法。通過閱讀本書,您將能夠創建一個由多個模塊組成的Web應用程序,它們無縫協同工作,提供最佳的用戶體驗。

《AngularJS指令》首先研究了整體單頁應用程序開發的最佳實踐,然後深入探討了AngularJS指令如何實現這些目標。在每一步中,您將學習我們正在構建的內容的如何和為什麼,到最後,您不僅將了解創建指令所需的知識,還將具備決定如何最佳組合它們的能力。

您還將學習為什麼以數據模型為基礎構建應用程序是最佳選擇,如何創建相互通信的新動態模塊,如何構建可以嵌入第三方網站的小部件,甚至如何創建自定義輸入,以便您的用戶可以直觀地與數據交互。在《AngularJS指令》中,您將學習所有必要的工具,開始設計自己的指令,並在構建更具動態性的Web時使用它們。

從本書中您將學到:
- 創建實時反映數據變化的動態模塊
- 創建相互連接的單頁應用程序
- 構建第三方小部件
- 使用現有內容並將其集成到您的指令中
- 將AngularJS與jQuery插件集成
- 通過消息傳遞與其他模塊通信
- 對您的AngularJS指令進行單元測試
- 使用Angular Scenario Runner設置和執行瀏覽器功能測試

方法:
本書採用實用的逐步方法,從頭開始建立指令,然後進一步創建由多個模塊組成的Web應用程序,以提供最佳的用戶體驗。

本書適合對JavaScript有一定了解的中級開發人員,他們希望加深對單頁Web應用程序開發的理解,尤其是對AngularJS和JavaScript MVC框架的理解。

預期讀者已經了解基本的JavaScript模式和慣用法,並能夠識別JSON格式的數據。