SHARE
TWEET
Untitled
a guest
Dec 16th, 2014
164
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- <form>
- <input type="text" ng-model="newEmail" />
- <input type="text" ng-model="confirmEmail" ng-match="newEmail"
- </form>
- app.directive('ngMatch'...
- require: 'ngModel',
- ...
- link: function(scope,element,attrs,ngModel) {
- ngModel.$validators.passwordCharacters = function(value) {
- var newEmail = ////how to get newEmail model from the attribute////
- return newEmail === value;
- });
- }
- ...
- )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

