How do I do to click menu without transition and keep history?

Currently I modify ionic source code in navClear directly:

$ionicViewService.nextViewOptions({
  disableAnimate: true,
  disableBack: false
});

Is there any way to achieve this without add a new directive?