Moda tweak

This commit is contained in:
Max Lynch
2013-11-13 15:18:48 -06:00
parent c49f022547
commit 2946a4d8fd
3 changed files with 4 additions and 4 deletions

View File

@ -170,7 +170,7 @@ angular.module('ionic.service.loading', ['ionic.ui.loading'])
}; };
}]); }]);
; ;
angular.module('ionic.service.modal', ['ionic.service.templateLoad']) angular.module('ionic.service.modal', ['ionic.service.templateLoad', 'ngAnimate'])
.factory('Modal', ['$rootScope', '$document', '$compile', '$animate', 'TemplateLoader', function($rootScope, $document, $compile, $animate, TemplateLoader) { .factory('Modal', ['$rootScope', '$document', '$compile', '$animate', 'TemplateLoader', function($rootScope, $document, $compile, $animate, TemplateLoader) {

View File

@ -1,4 +1,4 @@
angular.module('ionic.service.modal', ['ionic.service.templateLoad']) angular.module('ionic.service.modal', ['ionic.service.templateLoad', 'ngAnimate'])
.factory('Modal', ['$rootScope', '$document', '$compile', '$animate', 'TemplateLoader', function($rootScope, $document, $compile, $animate, TemplateLoader) { .factory('Modal', ['$rootScope', '$document', '$compile', '$animate', 'TemplateLoader', function($rootScope, $document, $compile, $animate, TemplateLoader) {

View File

@ -56,13 +56,13 @@
<script src="../../../../dist/js/ionic.js"></script> <script src="../../../../dist/js/ionic.js"></script>
<script src="../../../../dist/js/ionic-angular.js"></script> <script src="../../../../dist/js/ionic-angular.js"></script>
<script> <script>
angular.module('modalTest', ['ionic', 'ngAnimate']) angular.module('modalTest', ['ionic'])
.controller('ModalCtrl', function($scope, Modal) { .controller('ModalCtrl', function($scope, Modal) {
$scope.contacts = [ $scope.contacts = [
{ name: 'Gordon Freeman' }, { name: 'Gordon Freeman' },
{ name: 'Barney Calhoun' }, { name: 'Barney Calhoun' },
{ name: 'Lamar the Headcrab' }, { name: 'Lamarr the Headcrab' },
]; ];
$scope.openModal = function() { $scope.openModal = function() {
$scope.modal.show(); $scope.modal.show();