MCPcopy
hub / github.com/angular-ui/ui-router / stepChange

Function stepChange

test/angular/1.7/angular.js:27094–27108  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

27092 }
27093
27094 function stepChange(val) {
27095 stepVal = parseNumberAttrVal(val);
27096 // ignore changes before model is initialized
27097 if (isNumberNaN(ctrl.$modelValue)) {
27098 return;
27099 }
27100
27101 // Some browsers don't adjust the input value correctly, but set the stepMismatch error
27102 if (!supportsRange) {
27103 // TODO(matsko): implement validateLater to reduce number of validations
27104 ctrl.$validate();
27105 } else if (ctrl.$viewValue !== element.val()) {
27106 ctrl.$setViewValue(element.val());
27107 }
27108 }
27109}
27110
27111function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {

Callers

nothing calls this directly

Calls 1

parseNumberAttrValFunction · 0.70

Tested by

no test coverage detected