mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00
test(loading): add test to show setting dynamic content
references #6103
This commit is contained in:
@ -83,11 +83,16 @@ class E2EPage {
|
|||||||
content: `
|
content: `
|
||||||
<div class="custom-spinner-container">
|
<div class="custom-spinner-container">
|
||||||
<div class="custom-spinner-box"></div>
|
<div class="custom-spinner-box"></div>
|
||||||
</div>`,
|
</div>`
|
||||||
duration: 1000
|
|
||||||
});
|
});
|
||||||
|
|
||||||
loading.present();
|
loading.present();
|
||||||
|
setTimeout(() => {
|
||||||
|
loading.setContent("Loaded!");
|
||||||
|
}, 1000);
|
||||||
|
setTimeout(() => {
|
||||||
|
loading.dismiss();
|
||||||
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
presentLoadingText() {
|
presentLoadingText() {
|
||||||
|
@ -79,9 +79,9 @@ export class ViewController {
|
|||||||
didUnload: EventEmitter<any>;
|
didUnload: EventEmitter<any>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @protected
|
* @internal
|
||||||
*/
|
*/
|
||||||
protected data: any;
|
data: any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
Reference in New Issue
Block a user