title: Angularjs having multiple views with same controller and only run the controller once?
body: <p>Right now I have two separate views that I want to be able to controll in one controller.</p>
  
  <p>However, at the moment, the controller get's run twice. Is there anyway to connect multiple views to the same controller but only have the controller run once?</p>
  
  <p>I know I will probably have set up a factory to share the $scope data, but the goal is to not gather the data twice.</p>
  
  <pre><code>.state('cloud', {
      url: '/cloud',
      views: { 
          'main': { templateUrl: 'main.html', controller: 'cloud' },
          'second': { templateUrl: 'second.html', controller: 'cloud' }
      }
  })
  </code></pre>