Skip to content

Instantly share code, notes, and snippets.

@helxsz
Last active August 29, 2015 14:06
Show Gist options
  • Save helxsz/d0afe0717cf4505d310a to your computer and use it in GitHub Desktop.
Save helxsz/d0afe0717cf4505d310a to your computer and use it in GitHub Desktop.
lll
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