Ui router get parent state
if ($state.current.$$state && $state.current.$$state().parent.name === 'newOrder') { return true; }