I think you could register share button click event handler in "Angular way". Move the logic to controller and use ng-click directive to trigger ...
Lee mas