title: AngularJS-way: extend controllers/views with notification functionality
body: <p>What is the best way to add common notification functionality to needed controllers in AngularJS?</p>
  
  <p>The goal is to create local notifications that can be easily added/removed for any controller.</p>
  
  <p>So:</p>
  
  <ol>
  <li><strong>Shared functionality</strong> between controllers</li>
  <li>This functionality should work(?how? don't know) with <strong>view</strong> to output
  notifications</li>
  </ol>
  
  <p>now we have <a href="http://jsfiddle.net/ujeen/y6K4a/" rel="nofollow">such solution</a>.</p>
  
  <pre><code>code there
  </code></pre>