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
$parseProvider.unwrapPromises(true)
but this feature will be removed later on, so don’t depend on it.
Related Contents:
- How to cancel an $http request in AngularJS?
- Angular HttpPromise: difference between `success`/`error` methods and `then`’s arguments
- Using protractor with loops
- Wait for all promises to resolve
- AngularJS : Where to use promises?
- Angularjs $q.all
- Using success/error/finally/catch with Promises in AngularJS
- Is there a difference between promise.then.then vs promise.then; promise.then [duplicate]
- AngularJS resource promise
- angular $q, How to chain multiple promises within and after a for-loop
- AngularJS : $q -> deferred API order of things (lifecycle) AND who invokes digest?
- stop angular-ui-router navigation until promise is resolved
- Is this a “Deferred Antipattern”?
- ng-model for “ (with directive DEMO)
- How do I use $scope.$watch and $scope.$apply in AngularJS?
- Removing the fragment identifier from AngularJS urls (# symbol)
- Reloading the page gives wrong GET request with AngularJS HTML5 mode
- If you are not using a .(dot) in your AngularJS models you are doing it wrong?
- AngularJS execution order with `$q` — Chaining Promises
- how to use ng-option to set default value of select element
- How to call a method defined in an AngularJS directive?
- Angular UI Router – Nested States with multiple layouts
- AngularJS: How to make angular load script inside ng-include?
- AngularJS 1.5+ Components do not support Watchers, what is the work around?
- How can I dynamically add a directive in AngularJS?
- What’s the difference between $evalAsync and $timeout in AngularJS?
- Angular and SVG filters
- AngularJS vs Angular [closed]
- How to disable animations in protractor for angular js application
- Break promise chain and call a function based on the step in the chain where it is broken (rejected)
- passing 2 $index values within nested ng-repeat
- AngularJS $http, CORS and http authentication
- How to highlight a current menu item?
- Angular: calling controller function inside a directive link function using &
- Get value when selected ng-option changes
- ng-repeat not updating on update of array
- How to get element by classname or id
- AngularJS: ng-repeat list is not updated when a model element is spliced from the model array
- Ng-click doesn’t work inside ng-repeat
- Can angularjs routes have optional parameter values?
- Update scope value when service data is changed
- When to use the AngularJS `$onInit` Life-Cycle Hook
- How to parseInt in Angular.js
- Sharing data between directives
- Using comma as list separator with AngularJS
- $apply already in progress error
- Call a controller function from a directive without isolated scope in AngularJS
- Angularjs how to cancel resource promise when switching routes
- How/when to use ng-click to call a route?
- How do I filter an array with AngularJS and use a property of the filtered object as the ng-model attribute?