I have edited the code and this will work perfect. You should write your
url in the following format
On Saturday, December 28, 2019 at 11:52:32 PM UTC+5, Aneesking 2 wrote:
>
> Passing a String in a Method of Submit Giving undefined error in Angular 7.
>
>
> I am getting error so anyone who knows Angular 7 then please add me in
> Skype: aneesking2
>
> This is code:
> validateEmailUser(Email:string)
> {
> console.log('This called',Email);
>
> this.httpclient.post(`$http://localhost:65513/check-emails
> <http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A65513%2Fcheck-emails&sa=D&sntz=1&usg=AFQjCNENXgZDrv0VTLLn8YcF3ebTogrJRw>
> `,Email).subscribe(
> (response) =>{
> this.toastr.success('User Deleted Successfully');
>
> });
>
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/21ae8c6f-ba64-49b8-a74a-aed0789eb88d%40googlegroups.com.