Chapter 10. AngularJS Hacks

In this chapter, we will cover the following recipes:

  • Manipulating your application from the console
  • DRYing up your controllers
  • Using ng-bind instead of ng-cloak
  • Commenting JSON files
  • Creating custom AngularJS comments
  • Referencing deep properties safely using $parse
  • Preventing redundant parsing

Introduction

Mastering a programming language or framework demands more than merely reading through the documentation or cruising through one tutorial; it requires that you read a ton of code written by other developers. For the same reason, art museums don't have works from only one painter, or Beethoven's symphonies aren't written for one instrument, or the best technology companies don't rely on the ideas of one engineer. Complex, ...

Get AngularJS Web Application Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.