I need to pass JSON object in new window which is opened using window.open()
I have requirement to display stored data in database into new window. At the same time i need to pass a JSON object which is available in current open window to this new window.
Possible ways I had :
- Can save json in cookie before open new window, and read it in ngOnInit() then remove it from cookie.
- Can pass required data in URL, but i have large JSON object
Please guide if we can do this by any another approach.
Thank you.