title: Make one button trigger another button's click event
body: <p>When I click button A, a function gets called. If that function returns a certain value, I want to trigger the click event on button B, which will call its own function.</p>
  
  <p>I tried <code>angular.element('#secondbutton').trigger(click)</code>, but it didn't work.</p>