title: AngularJS How to access parameter of one ngController in another ngController
body: <p>Here is the thing:</p>
  <pre><code>&lt;div ng-controller=&quot;controller1&quot;&gt;
     &lt;div ng-controller=&quot;controller2&quot; ng-init=&quot;controller2.someMethod(controller1.Data.someId)&quot;&gt;
        {{something}}
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>For some reason I can't access <code>controller1.Data.someId</code> in the <em>div</em> of the other controller, but I really need to pass this ID to the other controller's method.</p>
  <p>How could this be possibly done?</p>
  <h3>UPDATE:</h3>
  <pre><code>&lt;div ng-controller=&quot;routesController as routesCtrl&quot;&gt;
      &lt;div class=&quot;ps-top-space-1&quot; ng-controller=&quot;routeController as routeCtrl&quot; ng-init=&quot;loadFromRouteInfoScreen(routesCtrl.RoutesData.apiRouteInfoResponse)&quot;&gt;
          &lt;ons-button modifier=&quot;large&quot; ng-click=&quot;routeCtrl.addTickAndRouteRating()&quot;&gt;Rate route or Add tick...&lt;/ons-button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>Where <em>routesCtrl.RoutesData.apiRouteInfoResponse</em> is set in the <em>routesController</em> and should have a data object with the <em>route_id</em>.
  My method <code>loadFromRouteInfoScreen(route_id)</code> is triggering some other functions (and a <code>console.log</code>).</p>