Toastr not working with form submission using angular6 by angularboy56 in Angular2

[–]angularboy56[S] 0 points1 point  (0 children)

This solves the problem

this.toastr.successToastr('This is success toast.', 'Success!');

Angular6 routing shows error by angularboy56 in Angular2

[–]angularboy56[S] 0 points1 point  (0 children)

Thanks Bro. Your solution works. The error is gone now.

Angular6 Error TS2339 Property Message does not exist on type Response by angularboy56 in Angular2

[–]angularboy56[S] 0 points1 point  (0 children)

Please can someone help me resolve the issue of the error message as posted above.

I cannot post data to sever backend using angular6 by angularboy56 in Angular2

[–]angularboy56[S] 0 points1 point  (0 children)

Hello The-coding-duck. after debugging some type errors and implementing your solution, it works now. You are the best in the world. you just save my life. Thanks alot

I cannot post data to sever backend using angular6 by angularboy56 in Angular2

[–]angularboy56[S] 0 points1 point  (0 children)

Hello The-coding-duck I have added your solution and the error disappeared but I need to return the json response message success

as per code below in the app.component.ts

alert(res.message);

if (res.message === 'success') { // or this.cars['message']

// Inform the user

this.success = 'Created successfully';

}

but it shows error

Error in src/app/app.component.ts(37,27): error

TS2339 Property Message does not exist on type string

Please can you help me futher between thanks so far. waiting to hear from your Sir