Skip to content

Instantly share code, notes, and snippets.

@KolevDarko
Last active August 29, 2015 14:22
Show Gist options
  • Save KolevDarko/0ac44fbe6bb605754f19 to your computer and use it in GitHub Desktop.
Save KolevDarko/0ac44fbe6bb605754f19 to your computer and use it in GitHub Desktop.
List of common AngularJS mistakes
1. Always use objects when using binding in angular directives.
2. Everything is camel case, dashes don't exist in link function.
3. Add headers: headers: {'Content-Type': 'application/x-www-form-urlencoded'} when trying to submit form data with $http
4. $scope is not a model!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment