title: Conditional ui-view
body: <p>I have a ui-view defined in my root template <code>&lt;div ui-view=""&gt;&lt;/div&gt;</code>. Is that possible to automatically hide that view if it's content is empty?</p>
  
  <p>I was searching for similar thread for some time but all the people suggests is checking current route or passing vars to rootScope which i don't like. I'm looking for the simplest solution possible - checking if desired view has any content defined and if not - hide it's div (or any other html tag)</p>