asked on
public ngOnInit()
{
this._routeSubscription = this._route.params
.pipe(switchMap(params => {
if (params.id.toString() === `create`)
{
this._isCreate = true;
return of({});
}
return this._contactsService.get(params.id);
}))
.subscribe(contact => {
this.contact = contact;
});
}
need to get contact.email to compare with edited value in html page, if user change and then change back, do not validate
HTML (HyperText Markup Language) is the main markup language for creating web pages and other information to be displayed in a web browser, providing both the structure and content for what is sent from a web server through the use of tags. The current implementation of the HTML specification is HTML5.
TRUSTED BY