Trick To Redirect New Window Or Tab With Post Method On Angular 5

I have not found a suitable library to redirect a page to a new tab using the post method on angular 2, 4, 5 and latest. I Using native javascript makes a simple service, so the app can redirect to a new page using the post method. Who knows any of you who need this script. Follow the tutorial open new tab with post method in angular below.

Trick To Redirect New Window Or Tab With Post Method On Angular 5 Min

Create a simple plugin to redirect a new window with the post angular method

1. Create a new service named redirect.service.ts or use the following angular cli service

2. open redirect.service.ts and fill in the following script

3. Add the service you created earlier into app.module.ts

4. To use the redirect plugin, follow these steps

Another article : Angular 4 Tutorial For Beginner With Simple App Project

So my short tutorial Redirect New Window Or Tab With Post Method On Angular 5, hopefully useful

The following two tabs change content below.
This site is a personal Blog of Sigit Prasetya Nugroho, a Desktop developer and freelance web developer working in PHP, MySQL, WordPress.

Leave a Comment

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.