vitalets/lazy-model

Not work with $ionicModals

Closed this issue · 3 comments

Hi,

I don't understand why its works really well on a standard controller, but when i do :

controller("ProfilCtrl", function($scope, $ionicModal) {
    $scope.user = {
        firstname: 'jj',
    };
    $ionicModal.fromTemplateUrl('templates/profil/edit.html', {
        animation: 'slide-in-up',
        focusFirstInput: false,
        scope: $scope,
    }).then(function(modal) {
        $scope.modal = modal;
    });
})

ng-model works but not lazy-model can you help me ?

hi @cedriclombardot
if not late could you make a jsfiddle with your code?

Arf, it's quite late for me, because i've used another method (implementing
my own cancel method with a rollback) but i think you could reproduce it
quickly using a basic ionic modal (they have samples on plunker)

Cédric

2014-10-12 10:12 GMT+02:00 Vitaliy Potapov notifications@github.com:

hi @cedriclombardot https://github.com/cedriclombardot
if not late could you make a jsfiddle with your code?


Reply to this email directly or view it on GitHub
#5 (comment).

As re-checked with current angular version it is not needed lazy-model any more.
Please have a look on readme.md