From: gustavo Date: Sat, 6 Feb 2016 12:44:25 +0000 (+0100) Subject: AngularJS: cars.controller.js, upgrade bootstrap name spaces X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=b680f5fa51d9fe2416369479012bc4575636b18c;p=JavaScriptForFun AngularJS: cars.controller.js, upgrade bootstrap name spaces --- diff --git a/angularjs/showcase/src/showcase/app/cars/cars.controller.js b/angularjs/showcase/src/showcase/app/cars/cars.controller.js index dec4420..939075e 100644 --- a/angularjs/showcase/src/showcase/app/cars/cars.controller.js +++ b/angularjs/showcase/src/showcase/app/cars/cars.controller.js @@ -23,7 +23,7 @@ * CarsController controller. */ /* @ngInject */ - function CarsController($modal, $timeout, cars) { + function CarsController($uibModal, $timeout, cars) { var vm = this; vm.example = { @@ -94,7 +94,7 @@ vm.doModal = function (size) { var cars = ['car1', 'car2', 'car3']; // The modalInstance object will be seen from here and it will also be injected in CarsErrorModal controller - var modalInstance = $modal.open({ + var modalInstance = $uibModal.open({ animation: true, templateUrl: 'app/cars/cars-error-modal.html', controller: 'CarsErrorModalController as vm',