title: angularjs communicate betweend controllers
body: <p>I'm new in Angular. I have a problem with communicate between controller.</p>
  
  <p>Page layout is like this:</p>
  
  <pre><code>------------------------------------
  page header "play" 00:00:00 (TimeController)
  
  ------------------------------------
  
  page content &lt;br&gt;&lt;br&gt;
  ng-view  
  
  (TaskController)&lt;br&gt;&lt;br&gt;
  ul&gt;li&lt;br&gt;
  - "play" link task 1&lt;br&gt;
  - "play" link task 2&lt;br&gt;
  - "play" link task 3&lt;br&gt;
  </code></pre>
  
  <p>So I have two controllers <code>TimeController</code> and <code>TaskController</code>. TimeController has a timer in page header.</p>
  
  <p>List of tasks is in rounting view/tasks-list.html</p>
  
  <pre>
  
      app.config(['$routeProvider', function($routeProvider) {
          $routeProvider.
              when('/', {
                  templateUrl: 'views/tasks-list.html',
                  controller: 'TaskController'
              }).
  
  </pre>
  
  <p>The "play" is a button. When i click on it i need to run a function from TimeController.   Also click on "play" in header should run the same function from TimeController.</p>
  
  <p>I dont know how to do this.</p>