Skip to content

Instantly share code, notes, and snippets.

View airtonferreira's full-sized avatar
🎯
Focusing

Airton Felix airtonferreira

🎯
Focusing
View GitHub Profile
@guillefd
guillefd / form-validation-pattern.component.ts
Created January 27, 2018 16:21
Angular Form Validator Pattern: only letters and numbers
import { Component } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
@Component({
selector: 'form',
templateUrl: './form.component.html',
styleUrls: ['./form.component.scss']
})
export class Form {