Closed bellsenawat closed 7 years ago
@bellsenawat How did you resolve this?
It seems that there's a bug at
https://github.com/angular-ui/bootstrap/blob/master/src/modal/index-nocss.js
var MODULE_NAME = 'ui.bootstrap.module.modal';
should read
var MODULE_NAME = 'ui.bootstrap.modal';
You can skip the bug by importing angular-ui-bootstrap/src/modal and then import the correct module name "manually".
import uiBootstrap from 'angular-ui-bootstrap'
import uiBootstrapModal from 'angular-ui-bootstrap/src/modal'
export default angular.module(...,
[
...
uiBootstrap,
'ui.bootstrap.modal'
]
use $uibModal
now.
Sorry i am newbie of angular es6
I try to using modal following tutorial by import module like this
I got this error Unknown provider: ui.bootstrap.module.modalProvider <- ui.bootstrap.module.modal <- AppCtrl