new add relative
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CommonfuncService } from './commonfunc.service';
|
||||
|
||||
describe('CommonfuncService', () => {
|
||||
let service: CommonfuncService;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({});
|
||||
service = TestBed.inject(CommonfuncService);
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,15 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class CommonfuncService {
|
||||
|
||||
constructor() { }
|
||||
|
||||
validateEmail(email) {
|
||||
var re = /\S+@\S+\.\S+/;
|
||||
return re.test(email);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -85,6 +85,11 @@ export class WrenchService {
|
||||
return this.getPostData('familyadd', reqData);
|
||||
}
|
||||
|
||||
familyInvite(reqData) {
|
||||
return this.getPostData('familyrelinvite', reqData);
|
||||
}
|
||||
|
||||
|
||||
referHx(reqData) {
|
||||
return this.getPostData('refferhx', reqData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user