Remove unnecessary $scope.$apply().
$q and $http promises, such as the promise returned by
languageService.getLanguages(), will already implicitly $apply() when
needed.
@@ -40,9 +40,7 @@ angular.module('form').controller('languageFieldController', ['$scope', '$inject
// Retrieve defined languages
languageService.getLanguages().then(function languagesRetrieved(languages) {
- $scope.$apply(function updateLanguageOptions() {
$scope.languages = languages;
- });
}, requestService.DIE);
// Interpret undefined/null as empty string
