You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
This is probably a real noob question.. but I'm trying to implement the masking, and the mask works very well, but I can't get a value out.. (This is my first angular app, and my boss insists on masking)
This is my input:
""
Here is the app declaration:
var sigApp = angular.module('sigApp',['ngSanitize','ui.utils']);
and I'm trying to get the value in this function
sigApp.controller("SigController", ['$scope','$sce', function($scope,$sce) {
$scope.direct = '';
$scope.mobile = '';
$scope.phone = '';
$scope.phoneOutput = function() {
$scope.validate = true;
var phoneCount = 0;
var dir = $scope.direct.$viewValue;
var mob = $scope.mobile.$viewValue;
var off = $scope.phone.$viewValue;
console.log('dir ' + dir);
console.log('mobile ' + mob);
console.log('phone ' + off);
...
});
I'm getting errors when I try tor reference the view value.
Can you provide some insight?
Thanks!!!
John
The text was updated successfully, but these errors were encountered:
Hi @daddyschmack - you're better off asking this question on Stackoverflow and coming back here if there's a bug report to be made (SO has better support for Q's) :-).
Hi,
This is probably a real noob question.. but I'm trying to implement the masking, and the mask works very well, but I can't get a value out.. (This is my first angular app, and my boss insists on masking)
This is my input:
""
Here is the app declaration:
var sigApp = angular.module('sigApp',['ngSanitize','ui.utils']);
and I'm trying to get the value in this function
sigApp.controller("SigController", ['$scope','$sce', function($scope,$sce) {
$scope.direct = '';
$scope.mobile = '';
$scope.phone = '';
$scope.phoneOutput = function() {
$scope.validate = true;
var phoneCount = 0;
var dir = $scope.direct.$viewValue;
var mob = $scope.mobile.$viewValue;
var off = $scope.phone.$viewValue;
console.log('dir ' + dir);
console.log('mobile ' + mob);
console.log('phone ' + off);
...
});
I'm getting errors when I try tor reference the view value.
Can you provide some insight?
Thanks!!!
John
The text was updated successfully, but these errors were encountered: