I think
$timeout(function() {
$modalInstance.close($scope.selected.item)
}, 2000);
must come outside $Scope.ok() function.
http://plnkr.co/edit/r4Ev2GPFzqc8t6J8H6Lk?p=preview
On Fri, Feb 7, 2014 at 4:34 PM, Edmilson Lani <[email protected]>wrote:
> http://plnkr.co/edit/r4Ev2GPFzqc8t6J8H6Lk?p=preview
>
>
> 2014-02-07 Varun Krishna Parthasarathy <[email protected]>:
>
> Hello everyone,
>> I wish to customize the default modal popup present in angularjs. I need
>> to do the following
>>
>> 1. Reducing the size of the popup
>> 2. closing it after some milliseconds say 5000 milliseconds.
>>
>> Is this possible to do in angularjs? I am using this
>> plnkr<http://plnkr.co/edit/ggtsdMSyYIRcXHe9zkw1?p=preview> as
>> an example.
>>
>>
>>
>> Thanks,
>> Varun Krishna. P
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "AngularJS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Atenciosamente
> Edmilson Lani
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
Regards,
Aadithya C Udupa
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.