Examples from the pro angular js book