Last active
August 29, 2015 14:22
-
-
Save KolevDarko/0ac44fbe6bb605754f19 to your computer and use it in GitHub Desktop.
List of common AngularJS mistakes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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