title: Loading chart via Angular ngRoute not working
body: <p>I am trying to load a chart (highcharts library) via <code>angular</code> <code>ngRoute</code>, but I cannot display the chart.</p>
  
  <p>JS - this is my config</p>
  
  <pre><code>    var app = angular.module('myApp', [
       'ngRoute'
       ]);
  
        app.config(function($routeProvider) {
        $routeProvider
        .when('/', {
         templateUrl: 'some.html',
         controller: 'MainCtrl'
         })
         .when('/contacts/:_id', {
         templateUrl: 'contacts/some.html',
         controller: 'SecondCtrl'
         })
         .otherwise({
          redirectTo: '/'
         });
  
  
        });
  </code></pre>
  
  <p>JS - these are my controllers</p>
  
  <pre><code>app.controller('MainCtrl', ['$scope', function($scope) {
  // some code here
  }]);
  
  app.controller('SecondCtrl', ['$scope', function($scope) {
  //some code here
  // drawing chart function
  $(function () {
          $('#container').highcharts({
              //rest of the code
  }]);
  </code></pre>
  
  <p>HTML 
                   //contacts/some.html page</p>
  
  <p>No errors in the console, though the chart is not loading</p>
  
  <p>Loading on the main page - index.html only if to write</p>
  
  <pre><code>&lt;div ng-controller="SecondCtrl"&gt;
      &lt;div id="container"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>