Angular JS: how to bind to promises

As of Angular 1.2, you can’t use promises in templates directly anymore.
Instead, you need to put the result into $scope inside then, like you normally would—no magic.

As a temporary workaround to get the old behavior, you can call


but this feature will be removed later on, so don’t depend on it.

Leave a Comment