Skip to content

Instantly share code, notes, and snippets.

@roine
Created June 9, 2014 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roine/8681796efa31cadb137a to your computer and use it in GitHub Desktop.
Save roine/8681796efa31cadb137a to your computer and use it in GitHub Desktop.
Angular tips

#Performance

  1. When using $timeout if $scope does not update set false to the third argument to skip the digest. (see angular doc)
  2. Add strictDi when bootstraping, it should throw an error when a function is not annotated. Annotating is important if you need to minify your code. This feature has been introduced in v1.3.0-beta.6 (see ticket, see performance)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment