कोणीय-UI-बूटस्ट्रैप जोड़ने और चलने वाली गंदगी को जोड़ने के बाद मेरे यमन ऐप पर सेवा मिलती है, यह पूरी तरह से चलती है और मैं जिस मॉडल को दिखाना चाहता हूं वह सही ढंग से प्रदर्शित होता है, लेकिन एक बार जब मैं परेशान करता हूं निर्माण, मुझे अपने कंसोल में एक अज्ञात प्रदाता त्रुटि मिलती है।कोणीय-यूई-बूटस्ट्रैप अज्ञात प्रदाता त्रुटि का कारण बनता है जब
<!-- This is what I added in my index.html -->
<script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
// In app.js I have
angular.module('yeomanApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'ui.bootstrap'
])
और नियंत्रक में,
.controller('myCntrl', function ($modal) {
$scope.items = ['item1', 'item2', 'item3'];
$scope.showDeleteWarning = function() {
var modalInstance = $modal.open({
templateUrl: 'deleteWarning.html',
controller: ModalInstanceCtrl,
resolve: {
items: function() {
return $scope.items;
}
}
});
modalInstance.result.then(function (selectedItem) {
$scope.selected = selectedItem;
}, function() {});
};
// Please note that $modalInstance represents a modal window (instance) dependency.
// It is not the same as the $modal service used above.
var ModalInstanceCtrl = function ($scope, $modalInstance, items) {
$scope.items = items;
$scope.selected = {
item: $scope.items[0]
};
$scope.ok = function() {
$modalInstance.close($scope.selected.item);
deleteVent();
};
$scope.cancel = function() {
$modalInstance.dismiss('cancel');
};
};
};
मैं इस कोशिश की और त्रुटि मिली: [$ इंजेक्टर: cdep] परिपत्र निर्भरता पाया: मेरे कंसोल पर। – NSCoder