Nach angle-ui-Bootstrap und laufen grunt serve auf meiner Yeoman App, es läuft perfekt und die Modalität, die ich zeigen will, wird korrekt angezeigt, aber sobald ich ein Grunzen Build, bekomme ich einen unbekannten Provider Fehler in meiner Konsole.angular-ui-bootstrap verursacht unbekannten Provider Fehler bei der Minimierung
<!-- 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'
])
und in der Steuerung,
.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');
};
};
};
ich dies versucht und gefunden Fehler: [$ Injektor: cDEP-] zirkuläre Abhängigkeit gefunden: auf meiner Konsole. – NSCoder