Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix(service): Fix $translate.isReady() won't return true if ready
Browse files Browse the repository at this point in the history
Fixes #1239
  • Loading branch information
knalli committed Oct 1, 2015
1 parent d28540e commit b40a344
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/service/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -2049,6 +2049,9 @@ function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvide
};

var $onReadyDeferred = $q.defer();
$onReadyDeferred.promise.then(function () {
$isReady = true;
});

/**
* @ngdoc function
Expand Down

0 comments on commit b40a344

Please sign in to comment.