Avatar of ybt
ybt

asked on 

Load contact data and put it in html page as contact.last_name, contact.email etc. but need to get email in component.ts page

     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;
         }); 
    }

Open in new window

need to get contact.email to compare with edited value in html page, if user change and then change back, do not validate

HTMLAngular

Avatar of undefined
Last Comment
Julian Hansen
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
HTML
HTML

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.

62K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo