MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / emailInputType

Function emailInputType

code/songhop/www/lib/angular/angular.js:19870–19881  ·  view source on GitHub ↗
(scope, element, attr, ctrl, $sniffer, $browser)

Source from the content-addressed store, hash-verified

19868}
19869
19870function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {
19871 // Note: no badInputChecker here by purpose as `url` is only a validation
19872 // in browsers, i.e. we can always read out input.value even if it is not valid!
19873 baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
19874 stringBasedInputType(ctrl);
19875
19876 ctrl.$$parserName = 'email';
19877 ctrl.$validators.email = function(modelValue, viewValue) {
19878 var value = modelValue || viewValue;
19879 return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value);
19880 };
19881}
19882
19883function radioInputType(scope, element, attr, ctrl) {
19884 // make the name unique, if not defined

Callers

nothing calls this directly

Calls 2

baseInputTypeFunction · 0.70
stringBasedInputTypeFunction · 0.70

Tested by

no test coverage detected