Last active
August 29, 2015 14:06
-
-
Save helxsz/d0afe0717cf4505d310a to your computer and use it in GitHub Desktop.
lll
This file contains hidden or 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
https://github.com/linnovate/mean-admin/blob/master/server/controllers/users.js | |
https://github.com/linnovate/mean-admin/blob/master/public/directives/editable.js | |
http://icelab.com.au/articles/levelling-up-with-angularjs-building-a-reusable-click-to-edit-directive/ | |
http://weblogs.asp.net/dwahlin/creating-custom-angularjs-directives-part-i-the-fundamentals | |
https://github.com/linnovate/mean-admin/blob/master/public/views/users.html | |
http://weblogs.asp.net/dwahlin/creating-custom-angularjs-directives-part-i-the-fundamentals | |
http://weblogs.asp.net/dwahlin/creating-custom-angularjs-directives-part-2-isolate-scope | |
if (err) { | |
switch (err.code) { | |
case 11000: | |
case 11001: | |
res.status(400).send('Username already taken'); | |
break; | |
default: | |
res.status(400).send('Please fill all the required fields'); | |
} | |
return res.status(400); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment