title: Angular 2 pass JSON object to new window
body: <p>I need to pass JSON object in new window which is opened using window.open()</p>
  
  <p>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.</p>
  
  <p>Possible ways I had :</p>
  
  <ol>
  <li>Can save json in cookie before open new window, and read it in
  ngOnInit() then remove it from cookie. </li>
  <li>Can pass required data in URL, but i have large JSON object</li>
  </ol>
  
  <p>Please guide if we can do this by any another approach.</p>
  
  <p>Thank you.</p>