Im trying to make a input field that need a 10 digit number (danish SSN number) and i need to grab the "year" number and add to numbers to it.
a number can be 1255905487
where i need to grab 90 and add 19 to it, so its 1990 etc. Im just not sure how to do this in the best way
So any help in the right direction would be nice :)
I have made a watcher for it
$scope.$watch(function() {
return $scope.cpr;
}, function(age) {
console.log("change detected: " + age);
});