0

I am very new to AngularJS and working on an application where I have to open a new window (from another domain) and pass some data to the new window across domain. Can somebody provide me some working sample in angularJS to refer and complete the same. Thanks in advance.

5
  • Do you know JS? Not angular, just JS. Because this is native functionality. Take a look at stackoverflow.com/questions/1830347/… Commented May 11, 2016 at 10:07
  • Will this solution work cross domain? I have tried for same application it works but did not work across domain. Commented May 11, 2016 at 11:49
  • For cross-domain you would need to use some AJAX, URL-params, or some more exotic solution. Sorry I didn't read the question correctly. Commented May 11, 2016 at 11:56
  • But how do the domains differ? Commented May 11, 2016 at 11:57
  • Any pointers or sample code would be really helpful. Commented May 11, 2016 at 11:57

1 Answer 1

2

If I understood your question properly then you can achieve this by following ways:

  1. Through URL Parameters
  2. Using subdomain-less cookie if you are talking about subdomains
  3. Using cross-domain localStorage
  4. cross-domain cookie
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.