How to use resolve with Angular 1.5 *components* and UI Bootstrap Modal How to use resolve with Angular 1.5 *components* and UI Bootstrap Modal angularjs angularjs

How to use resolve with Angular 1.5 *components* and UI Bootstrap Modal


For components, resolve needs to be added to the bindings, then it is available on the isolated scope. In other words, add resolve: '<' when declaring the component.

Modal Component

var template = require('./image_modal.component.html');var ImageModalController = require('./image_modal.controller');module.exports = {  template: template,  bindings: {    close: '&',    resolve: ‘<‘  },  controller: ImageModalController};