title: Retrieve AngularJS app name
body: <p>How can I retrive the name of the current app in AngularJS?<br>
  I mean the <code>ng-app="foo"</code> value.<br>
  I have searched through the API documentation, but I could not find any reference to this.  </p>
  
  <p><strong>MY SOLUTION</strong><br>
  Actually I have found solution like this  </p>
  
  <pre><code>angular.element($('[ng-app]')).attr('ng-app');  
  </code></pre>
  
  <p>But I don't really like the idea to search through DOM just to get this information.<br>
  Do you know a better solution?</p>