mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
set multiple onReady, onPlay, onFinish
This commit is contained in:
@@ -49,13 +49,17 @@ class IonicApp {
|
||||
|
||||
this.animation.add(row1, row2);
|
||||
|
||||
this.animation.onReady = () => {
|
||||
console.log('onReady');
|
||||
}
|
||||
this.animation.onReady(animation => {
|
||||
console.log('onReady', animation);
|
||||
});
|
||||
|
||||
this.animation.onFinish = () => {
|
||||
console.log('onFinish');
|
||||
}
|
||||
this.animation.onPlay(animation => {
|
||||
console.log('onPlay', animation);
|
||||
});
|
||||
|
||||
this.animation.onFinish(animation => {
|
||||
console.log('onFinish', animation);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user