Book description
Over 90 hands-on recipes to architect performant applications and implement best practices in AngularJS
In Detail
Packed with easy-to-follow recipes, this practical guide will show you how to unleash the full might of the AngularJS framework. Skip straight to practical solutions and quick, functional answers to your problems without hand-holding or slogging through the basics. Avoid antipatterns and pitfalls, and squeeze the maximum amount out of the most powerful parts of the framework, from creating promise-driven applications to building an extensible event bus. Throughout, take advantage of a clear problem-solving approach that offers code samples and explanations of components you should be using in your production applications.
What You Will Learn
- Architect AngularJS applications that are designed to scale
- Implement best practices used by the top AngularJS developers
- Write robust test suites with full application coverage
- Create application modules with maximum reusability and extensibility
- Master the most difficult aspects of AngularJS such as animation, testing, and promises
- Learn how to integrate all the new components introduced in the latest 1.3 release
- Discover syntax and browser tricks to make using AngularJS even better
- Optimize your AngularJS application for maximum performance
Table of contents
-
AngularJS Web Application Development Cookbook
- Table of Contents
- AngularJS Web Application Development Cookbook
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Maximizing AngularJS Directives
- Introduction
- Building a simple element directive
- Working through the directive spectrum
- Manipulating the DOM
- Linking directives
- Interfacing with a directive using isolate scope
- Interaction between nested directives
- Optional nested directive controllers
- Directive scope inheritance
- Directive templating
- Isolate scope
- Directive transclusion
- Recursive directives
-
2. Expanding Your Toolkit with Filters and Service Types
- Introduction
- Using the uppercase and lowercase filters
- Using the number and currency filters
- Using the date filter
- Debugging using the json filter
- Using data filters outside the template
- Using built-in search filters
- Chaining filters
- Creating custom data filters
- Creating custom search filters
- Filtering with custom comparators
- Building a search filter from scratch
- Building a custom search filter expression from scratch
- Using service values and constants
- Using service factories
- Using services
- Using service providers
- Using service decorators
-
3. AngularJS Animations
- Introduction
- Creating a simple fade in/out animation
- Replicating jQuery's slideUp() and slideDown() methods
- Creating enter animations with ngIf
- Creating leave and concurrent animations with ngView
- Creating move animations with ngRepeat
- Creating addClass animations with ngShow
- Creating removeClass animations with ngClass
- Staggering batched animations
- 4. Sculpting and Organizing your Application
- 5. Working with the Scope and Model
- 6. Testing in AngularJS
-
7. Screaming Fast AngularJS
- Introduction
- Recognizing AngularJS landmines
- Creating a universal watch callback
- Inspecting your application's watchers
- Deploying and managing $watch types efficiently
- Optimizing the application using reference $watch
- Optimizing the application using equality $watch
- Optimizing the application using $watchCollection
- Optimizing the application using $watch deregistration
- Optimizing template-binding watch expressions
- Optimizing the application with the compile phase in ng-repeat
- Optimizing the application using track by in ng-repeat
- Trimming down watched models
-
8. Promises
- Introduction
- Understanding and implementing a basic promise
- Chaining promises and promise handlers
- Implementing promise notifications
- Implementing promise barriers with $q.all()
- Creating promise wrappers with $q.when()
- Using promises with $http
- Using promises with $resource
- Using promises with Restangular
- Incorporating promises into native route resolves
- Implementing nested ui-router resolves
-
9. What's New in AngularJS 1.3
- Introduction
- Using HTML5 datetime input types
- Combining watchers with $watchGroup
- Sanity checking with ng-strict-di
- Controlling model input with ngModelOptions
- Incorporating $touched and $submitted states
- Cleaning up form errors with ngMessages
- Trimming your watch list with lazy binding
- Creating and integrating custom form validators
- 10. AngularJS Hacks
- Index
Product information
- Title: AngularJS Web Application Development Cookbook
- Author(s):
- Release date: December 2014
- Publisher(s): Packt Publishing
- ISBN: 9781783283354
You might also like
book
Learning AngularJS
With AngularJS, you can quickly build client-side applications that run well on any desktop or mobile …
book
Learning AngularJS
Get Started Fast with AngularJS Web Development AngularJS is one of the most exciting and innovative …
book
Building Large-Scale Web Applications with Angular
A definitive guide on frontend development with Angular from design to deployment Key Features Develop web …
book
AngularJS: Up and Running
If you want to get started with AngularJS, either as a side project, an additional tool, …