MCPcopy Index your code
hub / github.com/angular-ui/ui-router / stepChange

Function stepChange

test/angular/1.6/angular.js:26100–26114  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

26098 }
26099
26100 function stepChange(val) {
26101 stepVal = parseNumberAttrVal(val);
26102 // ignore changes before model is initialized
26103 if (isNumberNaN(ctrl.$modelValue)) {
26104 return;
26105 }
26106
26107 // Some browsers don't adjust the input value correctly, but set the stepMismatch error
26108 if (supportsRange && ctrl.$viewValue !== element.val()) {
26109 ctrl.$setViewValue(element.val());
26110 } else {
26111 // TODO(matsko): implement validateLater to reduce number of validations
26112 ctrl.$validate();
26113 }
26114 }
26115}
26116
26117function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {

Callers

nothing calls this directly

Calls 1

parseNumberAttrValFunction · 0.70

Tested by

no test coverage detected