I found the above code to not work in beta 14 and had to do the following instead (hope this helps out anyone else searching for an answer):
$rootScope.$on('$ionicView.beforeEnter', function (e, data) {
if (data.enableBack) {
doSomething();
}
});