Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Masking Help #97

Closed
daddyschmack opened this issue Jan 17, 2015 · 3 comments
Closed

Masking Help #97

daddyschmack opened this issue Jan 17, 2015 · 3 comments

Comments

@daddyschmack
Copy link

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

@karianna
Copy link

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

@daddyschmack
Copy link
Author

Thanks, Do I need to delete this post?

@karianna
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants