Hello everyone!

I have two applications.
One is opening my Angular application through a redirect request.
And I need to pass a param.
This is the way I'm doing:

```
  post(obj, url) {
        const mapForm = document.createElement('form');
        mapForm.target = '_blank';
        mapForm.method = 'POST';
        mapForm.action = url;
        Object.keys(obj).forEach(param => {
            const mapInput = document.createElement('input');
            mapInput.type = 'hidden';
            mapInput.id = param;
            mapInput.name = param;
            mapInput.setAttribute('value', obj[param]);
            mapForm.appendChild(mapInput);
        });
        document.body.appendChild(mapForm);
        mapForm.submit();
    }
```

But how can I receive this param on the Angular application?

-- 
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/3711d643-7a4f-4bcc-b4ec-36be1b1949d1n%40googlegroups.com.

Reply via email to