Mastering Web Application Development with AngularJS

Streamline your web applications with this hands-on course. From initial structuring to full deployment, you’ll learn everything you need to know about AngularJS DOM based frameworks.

Mastering Web Application Development with AngularJS

Mastering
Peter Bacon Darwin, Pawel Kozlowski

Streamline your web applications with this hands-on course. From initial structuring to full deployment, you’ll learn everything you need to know about AngularJS DOM based frameworks.
$10.00
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781782161820
Paperback372 pages

About This Book

  • Make the most out of AngularJS by understanding the AngularJS philosophy and applying it to real-life development tasks
  • Effectively structure, write, test, and finally deploy your application
  • Add security and optimization features to your AngularJS applications
  • Harness the full power of AngularJS by creating your own directives
  • Full of solutions to real life problems, with clear explanations of the more sophisticated AngularJS concepts

Who This Book Is For

This book will be most useful to developers who are evaluating or have decided to use AngularJS for a real life project. You should have some prior exposure to AngularJS, at least through basic examples. We assume that you’ve got working knowledge of HTML, CSS, and JavaScript.

Table of Contents

Chapter 1: Angular Zen
Meet AngularJS
AngularJS crash course
AngularJS and the rest of the world
Summary
Chapter 2: Building and Testing
Introducing the sample application
Build system
Organizing files and folders
AngularJS modules and files
Automated testing
Summary
Chapter 3: Communicating with a Back-end Server
Making XHR and JSONP requests with $http
The promise API with $q
The promise API with $http
Communicating with RESTful endpoints
Using advanced features of $http
Testing code that interacts with $http
Summary
Chapter 4: Displaying and Formatting Data
Referencing directives
Displaying results of expression evaluation
Conditional display
Rendering collections with the ngRepeat directive
DOM event handlers
Working effectively with DOM-based templates
Handling model transformations with filters
Summary
Chapter 5: Creating Advanced Forms
Comparing traditional forms with AngularJS forms
Creating a User Information Form
Understanding the input directives
Looking inside ngModel data binding
Validating AngularJS forms
Nesting forms in other forms
Repeating subforms
Handling traditional HTML form submission
Resetting the User Info form
Summary
Chapter 6: Organizing Navigation
URLs in single-page web applications
Using the $location service
Using built-in AngularJS routing services
Limitations of the $route service
Routing-specific patterns, tips, and tricks
Summary
Chapter 7: Securing Your Application
Providing server-side authentication and authorization
Securing partial templates
Stopping malicious attacks
Adding client-side security support
Supporting authentication and authorization on the client
Preventing navigation to secure routes
Summary
Chapter 8: Building Your Own Directives
What are AngularJS directives?
Following the directive compilation life-cycle
Writing unit tests for directives
Defining a directive
Styling buttons with directives
Understanding AngularJS widget directives
Creating a custom validation directive
Creating an asynchronous model validator
Wrapping the jQueryUI datepicker directive
Summary
Chapter 9: Building Advanced Directives
Using transclusion
Creating and working with transclusion functions
Understanding directive controllers
Taking control of the compilation process
Summary
Chapter 10: Building AngularJS Web Applications for an International Audience
Using locale-specific symbols and settings
Handling translations
Patterns, tips, and tricks
Summary
Chapter 11: Writing Robust AngularJS Web Applications
Understanding the inner workings of AngularJS
Performance tuning – set expectations, measure, tune, and repeat
Performance tuning of AngularJS applications
Summary
Chapter 12: Packaging and Deploying AngularJS Web Applications
Improving network-related performance
Optimizing the landing page
Supported browsers
Summary

What You Will Learn

  • Use AngularJS DOM-based templating effectively and learn how it differs from other frameworks
  • Query and modify data in various backends and become proficient with the promise API
  • Quickly create complex forms, taking full advantage of the 2-way data binding
  • Introduce navigation in your web application by relaying on the HTML5 History API
  • Manage dependencies with the AngularJS module and the Dependency Injection systems
  • Localize your web application to prepare it for an international audience
  • Secure your web application from unauthorized users
  • Build a variety of AngularJS directives: widgets, validators, and wrapping 3rd party plugins
  • Gain a deep understanding of the AngularJS compiler to build even more sophisticated directives
  • Unit test AngularJS-specific JavaScript code using the Jasmine BDD testing framework
  • Structure your web application by organizing it into a meaningful and flexible directory structure

In Detail

AngularJS is an open-source JavaScript framework. Its goal is to develop MVC-based web applications and reduce the amount of JavaScript needed to make web applications functional.

The book will take the reader through the workflow of building an AngularJS app.

Throughout the process of app creation, we will have a look at the different interaction points between design and development and the readers will learn how AngularJS helps both roles to build an application that works well, as well as how to create clean and maintainable front end markup and code.

Authors

Table of Contents

Chapter 1: Angular Zen
Meet AngularJS
AngularJS crash course
AngularJS and the rest of the world
Summary
Chapter 2: Building and Testing
Introducing the sample application
Build system
Organizing files and folders
AngularJS modules and files
Automated testing
Summary
Chapter 3: Communicating with a Back-end Server
Making XHR and JSONP requests with $http
The promise API with $q
The promise API with $http
Communicating with RESTful endpoints
Using advanced features of $http
Testing code that interacts with $http
Summary
Chapter 4: Displaying and Formatting Data
Referencing directives
Displaying results of expression evaluation
Conditional display
Rendering collections with the ngRepeat directive
DOM event handlers
Working effectively with DOM-based templates
Handling model transformations with filters
Summary
Chapter 5: Creating Advanced Forms
Comparing traditional forms with AngularJS forms
Creating a User Information Form
Understanding the input directives
Looking inside ngModel data binding
Validating AngularJS forms
Nesting forms in other forms
Repeating subforms
Handling traditional HTML form submission
Resetting the User Info form
Summary
Chapter 6: Organizing Navigation
URLs in single-page web applications
Using the $location service
Using built-in AngularJS routing services
Limitations of the $route service
Routing-specific patterns, tips, and tricks
Summary
Chapter 7: Securing Your Application
Providing server-side authentication and authorization
Securing partial templates
Stopping malicious attacks
Adding client-side security support
Supporting authentication and authorization on the client
Preventing navigation to secure routes
Summary
Chapter 8: Building Your Own Directives
What are AngularJS directives?
Following the directive compilation life-cycle
Writing unit tests for directives
Defining a directive
Styling buttons with directives
Understanding AngularJS widget directives
Creating a custom validation directive
Creating an asynchronous model validator
Wrapping the jQueryUI datepicker directive
Summary
Chapter 9: Building Advanced Directives
Using transclusion
Creating and working with transclusion functions
Understanding directive controllers
Taking control of the compilation process
Summary
Chapter 10: Building AngularJS Web Applications for an International Audience
Using locale-specific symbols and settings
Handling translations
Patterns, tips, and tricks
Summary
Chapter 11: Writing Robust AngularJS Web Applications
Understanding the inner workings of AngularJS
Performance tuning – set expectations, measure, tune, and repeat
Performance tuning of AngularJS applications
Summary
Chapter 12: Packaging and Deploying AngularJS Web Applications
Improving network-related performance
Optimizing the landing page
Supported browsers
Summary

Book Details

ISBN 139781782161820
Paperback372 pages
Read More

Recommended for You

AngularJS Web Application Development Blueprints
$ 10.00
AngularJS Web Application Development Cookbook
$ 10.00
AngularJS UI Development
$ 10.00
Learning Web Development with Bootstrap and AngularJS
$ 10.00