$ scope.emit(...)の呼び出しが処理を完了した後に(つまり、すべてのハンドラ/リスナーが完了した)アクションを実行する必要があります。
$scope.$emit("nsError:setPage", { page: page, ele: ele });// tell page directive to set the current page so that the errored item is visible
alert('here');
現在のところ、UIが正しいページに更新される前にアラートが発生します。
おかげで、それは、放出されたイベント(ではない、その後、私が述べたように)を消費するためです。 – Nathan