title: Multiple $stateParams causing controller to be called multiple times
body: <p>I have a stateProvider which looks like:</p>
  
  <pre><code>$stateProvider.state('test.example', {
          url: '/test?param1&amp;param2',
          templateUrl: 'test/testParam.html',
          controller: 'testParamCtrl'
  });
  </code></pre>
  
  <p>When I console log $stateParams in my controller, it runs twice. This happens only when I'm switching between tabs on my app. This problem doesn't occur if I refresh the app.</p>
  
  <p>It seems as if the controller is "building" the stateParams object and instantiating the controller each time. Therefore, I'm getting some angular errors of param2 being undefined during the first instantiation. This is what the console logs look like:</p>
  
  <pre><code>Object {param1: "data1", param2: undefined} // first instantiation
  Object {param1: "data1", param2: "data2"} // second instantiation
  </code></pre>
  
  <p>When I refresh the page, however, only one console log shows up, which is the "correct one" (i.e. param1 and param2 are both defined).</p>
  
  <p>Thanks in advance!</p>