AngularJS Essentials
Год: 2014
Автор: Rodrigo Branas
Издательство: Packt Publishing
ISBN: 978-1-78398-009-3
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Количество страниц: 180
Описание:
This book is a practical guide filled with real-world examples that will help you discover the best practices of the AngularJS framework, covering its most important concepts such as directives, expressions, filters, and modules and guiding you through the steps of building your very own web application.
You will start by learning how to create reusable components with directives, experiencing an expressive way of developing software. Then we will move on to cover data handling, and you will learn how to use the various features of the AngularJS framework to accomplish any challenge related to presenting, transforming, and validating data on a user's interface.
After that, we will explore the secrets of the dependency injection mechanism available in AngularJS, bringing reuse and testability to your application by decoupling the layers. The book will also cover the best practices of using the framework and how to automate the test and the project's workflow.
Preface
Chapter 1: Getting Started with AngularJS
Introduction to AngularJS
Architectural concepts
Setting up the framework
Organizing the code
Chapter 2: Creating Reusable Components with Directives
What is a directive?
Using AngularJS built-in directives
Refactoring application organization
Creating our own directives
Animation
Chapter 3: Data Handling
Expressions
Filters
Form validation
Chapter 4: Dependency Injection and Services
Dependency injection
Creating services
Using AngularJS built-in services
Chapter 5: Scope
Two-way data binding
Best practices using the scope
The $rootScope object
Scope Broadcasting
Chapter 6: Modules
Creating modules
Recommended modules
Chapter 7: Unit Testing
The Jasmine testing framework
Testing AngularJS components
Chapter 8: Automating the Workflow
Automating the workflow with Grunt
Managing packages with Bower
Index