Skip to content

Instantly share code, notes, and snippets.

Sean Oh ohsiwon

Block or report user

Report or block ohsiwon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ohsiwon / inputValidator.js
Last active Jun 3, 2016
AngularJs input validator directive for text, email and U.S. phone number
View inputValidator.js
(function() {
'use strict';
function inputValidator($log) {
var vm, directive, inputType, regex;
function link(scope, element, attrs, ngModel) {
vm = scope;
function init() {
You can’t perform that action at this time.