types_promise.then(function(types) { $scope.types = types; }); definings_promise.then(function(definings) { $scope.definings = definings; });