mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Binding scope on modal obj
This commit is contained in:
4
dist/js/ionic-angular.js
vendored
4
dist/js/ionic-angular.js
vendored
@@ -2,7 +2,7 @@
|
||||
* Copyright 2013 Drifty Co.
|
||||
* http://drifty.com/
|
||||
*
|
||||
* Ionic, v0.9.14
|
||||
* Ionic, v0.9.17
|
||||
* A powerful HTML5 mobile app framework.
|
||||
* http://ionicframework.com/
|
||||
*
|
||||
@@ -239,6 +239,8 @@ angular.module('ionic.service.modal', ['ionic.service.templateLoad', 'ngAnimate'
|
||||
options.el = element[0];
|
||||
var modal = new ModalView(options);
|
||||
|
||||
modal.scope = scope;
|
||||
|
||||
// If this wasn't a defined scope, we can assign 'modal' to the isolated scope
|
||||
// we created
|
||||
if(!options.scope) {
|
||||
|
||||
2
dist/js/ionic-angular.min.js
vendored
2
dist/js/ionic-angular.min.js
vendored
File diff suppressed because one or more lines are too long
4
dist/js/ionic.js
vendored
4
dist/js/ionic.js
vendored
@@ -2,7 +2,7 @@
|
||||
* Copyright 2013 Drifty Co.
|
||||
* http://drifty.com/
|
||||
*
|
||||
* Ionic, v0.9.14
|
||||
* Ionic, v0.9.17
|
||||
* A powerful HTML5 mobile app framework.
|
||||
* http://ionicframework.com/
|
||||
*
|
||||
@@ -16,7 +16,7 @@
|
||||
window.ionic = {
|
||||
controllers: {},
|
||||
views: {},
|
||||
version: '0.9.14'
|
||||
version: '0.9.17'
|
||||
};;
|
||||
(function(ionic) {
|
||||
|
||||
|
||||
4
dist/js/ionic.min.js
vendored
4
dist/js/ionic.min.js
vendored
File diff suppressed because one or more lines are too long
2
js/ext/angular/src/service/ionicModal.js
vendored
2
js/ext/angular/src/service/ionicModal.js
vendored
@@ -45,6 +45,8 @@ angular.module('ionic.service.modal', ['ionic.service.templateLoad', 'ngAnimate'
|
||||
options.el = element[0];
|
||||
var modal = new ModalView(options);
|
||||
|
||||
modal.scope = scope;
|
||||
|
||||
// If this wasn't a defined scope, we can assign 'modal' to the isolated scope
|
||||
// we created
|
||||
if(!options.scope) {
|
||||
|
||||
Reference in New Issue
Block a user