So I have tried everything, every example, I have absolutely no idea whats wrong. Whenever I try to load in '$uibModal' I get errors and all of my angular code breaks. If I dont load it in properly then i get $uibModal.open errors. Here is my code. I am at the current version of 0.14.3, I just downloaded the file today. If it matters my angular app is in rails and im using bower to import everything.
The app.js file where I loaded in my js.
var app = angular.module('planoxApp',
['ui.router',
'nya.bootstrap.select', // bootstrap select
'ngAnimate',
'ui.bootstrap',
'main-directives',
'templates',
'color.picker',
'xeditable',
'restangular',
'ngDragDrop',
'angularFileUpload',
'ngStorage'
// 'mgcrea.ngStrap',
// 'mgcrea.ngStrap.typeahead',
// 'mgcrea.ngStrap.tooltip',
// 'mgcrea.ngStrap.helpers.parseOptions',
])
The ctrl loading area, this brings up the error
[$injector:unpr] Unknown provider: $uibModalProvider <- $uibModal <- PhotoplanCtrl
app.controller('PhotoplanCtrl',['$http','$scope','$stateParams','$filter','$uibModal','$log',
function($http,$scope, $stateParams,$filter,$uibModal,$log){
But if i change it too
app.controller('PhotoplanCtrl',['$http','$scope','$stateParams','$filter','$log',
function($http,$scope, $stateParams,$filter,$uibModal,$log){
The error goes away, and instead we get, Error: $uibModal.open is not a function. (In '$uibModal.open', '$uibModal.open' is undefined)
Here is the modal code
var modalInstance = $uibModal.open({
animation: $scope.animationsEnabled,
templateUrl: 'templates/photoplan/ModalPublish.html',
controller: 'ModalPublishCtrl'
});
If anyone knows whats wrong, any help is really appreciated.