angular-ui/angular-ui.github.com

Masking Help

daddyschmack opened this issue · 3 comments

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

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) :-).

Thanks, Do I need to delete this post?

No that's fine - I've just closed it for now.