16 lines
226 B
TypeScript
16 lines
226 B
TypeScript
import { Injectable } from '@angular/core';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class CommonfuncService {
|
|
|
|
constructor() { }
|
|
|
|
validateEmail(email) {
|
|
var re = /\S+@\S+\.\S+/;
|
|
return re.test(email);
|
|
}
|
|
|
|
}
|