mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Moda tweak
This commit is contained in:
2
dist/js/ionic-angular.js
vendored
2
dist/js/ionic-angular.js
vendored
@ -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) {
|
||||||
|
|||||||
2
js/ext/angular/src/service/ionicModal.js
vendored
2
js/ext/angular/src/service/ionicModal.js
vendored
@ -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) {
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user