javascript - Resolve multiple dependencies of angular-ui modal -
using angular-ui modal directive can create modal , resolve dependency.
$modal.open({ templateurl: 'my/path/template.html', controller: mycontroller, controlleras: 'vm', backdrop: 'static', resolve: { form: _modelformresolver, lists: ['form', function(form) { console.log(form); }] } });
the dependency form
gets resolved correctly. however, lists
depending on form
resolved. results in error.
unknown provider: formprovider
is possible resolve parameter other resolved parameters or have chain them somehow?
Comments
Post a Comment