M
M
mifkys2015-03-09 15:02:11
JavaScript
mifkys, 2015-03-09 15:02:11

How to make it so that when the application starts, ionicModal is already open?

Good afternoon. How can I make the ionicModal modal window ( ionicframework.com/docs/api/service/$ionicModal ) already be shown on startup of an application written in ionic framework without popup animation? The most that I could do was to call modal.show() with minimal delay, but at the same time, you can see how the window leaves the bottom of the screen.
On the official forum, I, unfortunately, have not yet been answered.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Osher, 2015-03-09
@miraage

And if so:

$ionicModal.fromTemplateUrl('my-modal.html', {
    scope: $scope,
    animation: 'my-modal-show-class'
  })

And customize this animation class?

D
Dmitry Dedukhin, 2015-03-10
@Demetros

Add the markup for this modal window directly to the application's html file, and set it to ng-controller, which (the controller) will hide the window when necessary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question