Also check: directive for form validation User input validation is a core part of creating proper HTML forms. Form validators not only help you to get better quality data but they also guide the user through your form. Angular comes with a series of…
User input validation is a core part of creating proper HTML forms. Form validators not only help you to get better quality data but they also guide the user through your form. Angular comes with a series of built-in validators such as required or ma…
The application is simple, to build a color picker: When click the rect box, it will check the color value below and title color will also change. color-picker.ts: import {Component, Output, EventEmitter, Input} from "@angular/core"; import {RED…
old import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class DataService { private dataSource = new BehaviorSubject(Object); public currentData = this.dataSource.asObservable…