hacky allow direct and ng-click to share def