No need to delete error from the $error object manually. Simply use:
formObj[inputName].$setValidity(errorName, true);
No need to delete error from the $error object manually. Simply use:
formObj[inputName].$setValidity(errorName, true);
This is the second part of the Guide to Self-teaching AngularJS Trilogy. If you haven’t gone through the first one, do it now, here. If you already have a demo page that you can show someone (your potential employer), read on. 5 steps as well, but harder on research. Take it one at a time.
This Guide to Self-teaching AngularJS Trilogy is for a friend who wants to learn AngularJS from zero. The question was, “Which tutorial should I follow?”
None of them.
Reading tutorials and watching videos is passive, therefore rather ineffective and less fun. If you’re a strong self-learner, what you need is not tutorial, but a guide to doing research on your own. Here it is.
Turns out Firefox doesn’t work well with a lot of things. :/
:-moz-placeholder { /* Firefox 18- */ color: #aaa; font-size: 18px; } ::-moz-placeholder { /* Firefox 19+ */ color: #aaa; font-size: 18px; }
This is a nice list to keep for reference somewhere:
As of now, Angular thinks abc@abc
is a valid email address. Technically it might be, but when it happens in real life, the chance of it being a typo is probably way larger than it being an actual email address. I want a dot to be part of that validation.
This is the error. “No instance found for handle left”. I’ve been allowing it to run rampant there for a while now due to tight schedule. Now that there’s a bit of extra time.. Let’s murder it.
Make use of ngModel. The http or https version:
Gulp has been giving me a lot of trouble since the day we met. Basically because he breaks his watch whenever he smells a bit of error in JavaScript. This is a serious pain in the ass, since with the site I’m working on, I’ll have to restart the server in Terminal, re-login, and click to the page I was previously on. Three additional steps for a minor change. No fun.
This is how to tame him.
Double clicking the text inside input and it doesn’t appear selected. Cursor can’t even be placed at the start of the input. It’s because of this:
-moz-user-select: none;
Either don’t use this on everything(*), or do a counter one on all <input>.