title: Angularjs app.run doesn't load
body: <p>I have a problem with app.run(). In the main page app.run() is working. When I click to the menu button Events and in the page events.html app.run() doesn't work. But when I reload this page app.run() is working. I don't know what to do. Pages main.html and events.html are in the ngView, menu also is in the ngView.<br>
  controller.js</p>
  
  <pre><code>afroEarthApp.config(['$routeProvider', function($routeProvider){
      $routeProvider
        .when('/',{
          templateUrl:'template/home.html',
          controller:'afroEarthMainCtrl'
        })
        .when('/events',{
          templateUrl:'template/events.html',
          controller:'eventsCtrl'
        })
        .when('/sites/:niche', {
          templateUrl:'template/single.html',
          controller:'SingleCtrl'
        })
        .otherwise({
          redirectTo: '/'
        })
  }]);
  afroEarthApp.controller('afroEarthMainCtrl',['$scope','$http','$location','$cookies', '$rootScope', '$route', function($scope, $http, $location, $cookies, $rootScope, $route) {
  ...some code...
  }]);
  
  afroEarthApp.controller('eventsCtrl',['$scope','$http','$location','$cookies', '$rootScope', '$route', function($scope, $http, $location, $cookies, $rootScope, $route) {
  ...some code...
  }]);
  
  afroEarthApp.run(['$log', '$rootScope', '$route', function ($log, $rootScope, $route) {
      $rootScope.$on('$viewContentLoaded', function ($rootScope, $route) {
  ...some code...
  })
  }]);
  </code></pre>
  
  <p>home.html</p>
  
  <pre><code>        &lt;ul class="nav navbar-nav navbar-right"&gt;
              &lt;li&gt;&lt;a class="page-scroll" href="#websites"&gt;Lifestyle sites&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a class="page-scroll" href="stories"&gt;Success Stories&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#/events" data-target="#events" target="_self"&gt;Events&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a class="page-scroll" ng-href="http://{{singleNiche.url}}.afroearth.com/login/"&gt;Login&lt;/a&gt;&lt;/li&gt;
              &lt;li class="other-countries"&gt;
                  &lt;a href="#"&gt;
                      {{singleNiche.country}}&lt;img src="{{singleNiche.countryFlag}}"&gt;&lt;i class="icon-caret-down"&gt;&lt;/i&gt;
                  &lt;/a&gt;
                  &lt;ul&gt;
                      &lt;li ng-repeat="country in singleNiche.countries"&gt;&lt;a ng-click="setCountry(country.url)" &gt;{{country.name}}&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
  </code></pre>
  
  <p>Can you hepl me please.</p>