title: AngularJs call parent controller function with parameter
body: <p>I have two controller's and I want to call other parent controller function with parameter when user clicks the button.</p>
  
  <p><strong>Html</strong></p>
  
  <pre><code>&lt;a ng-click='test('something')'&gt;Click&lt;/a&gt;
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>controller: function($scope) {
          ..........
     $scope.test= $scope.$parent.parentTest(t);// it fails...
  
  ..........}
  </code></pre>
  
  <p><strong>Parent Controller</strong></p>
  
  <pre><code>$scope.parentTest= function(m) {
  
     var my=m;
  
     ...Something...
  
  }
  </code></pre>
  
  <p>If I run function without any parameter, it works.  If I run the function with parameter it doesn't. </p>
  
  <p>I want to call parent function with parameter.</p>