Tab bar right buttons


Trying to figure out how to use the rightButtons attribute of ion-tab. I’ve got:
<ion-tab title=“Places” icon=“icon ion-heart” href="#/tab/places" right-buttons=“search”>

and in the $scope I have

$ = [{type:‘ion-ios7-location’, content:‘search’, tap:function(){

Am I doing it wrong? Maybe I’m in the wrong scope… I’ve got this defined in the tab’s abstract route controller.