This commit is contained in:
2018-04-22 21:30:29 -04:00
parent 3d263a956d
commit 914118f52f
15 changed files with 289 additions and 36 deletions

View File

@@ -0,0 +1,31 @@
import { AbstractControl } from '@angular/forms';
import { RegistrationService } from '../registration.service';
export class ValidateUserName{
constructor(
private RS: RegistrationService
){ }
validateUserName( control: AbstractControl ){
//var RS = new RegistrationService(null);
/*
this.registrationService2.validateUserName( control.value ).subscribe( data => {
console.log( data );
if( control.value != data.username ){
return{
validUserName: true
};
}
return null;
});
*/
}
}