title: How to set a property of scope in the controller when it is available in angular?
body: <p>I have a global JS object called instance_</p>
  
  <p>It has a property called current_</p>
  
  <p>Which later gets a property called dataset_</p>
  
  <p>so basicaly <code>instance_.current_.dataset_</code></p>
  
  <p>I use this dataset_ property in a div to show current dataset. But when the controller is initiliased by angular current_ is null. So I cant use dataset_ property of current_ as I cant set <code>$scope = instance_.current_.dataset_</code>as<code>current_</code>is<code>null</code></p>
  
  <p>How do I solve this?</p>
  
  <p>an alternative attempt at a solution, how can I delay this particular controller's initialization until current_view_ remains null?</p>