$http.post(url, data).then(function (response) {
// TypeError: Cannot read property '$destroy' of null
$state.go('some.page');
// No Error
$timeout(function () {
$state.go('some.page');
}, 500);
});
Задержка 500 мс предотвращает ошибку.
Почему мгновенное изменение страницы приводит к ошибке "Не удается прочитать свойство '$ destroy' of null"?