mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
chore(demo): tidy
This commit is contained in:
@ -48,7 +48,7 @@ export class AlertPageComponent {
|
|||||||
|
|
||||||
});
|
});
|
||||||
alert.present().then(() => {
|
alert.present().then(() => {
|
||||||
return alert.dismiss();
|
// return alert.dismiss();
|
||||||
|
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
console.log('dismissed');
|
console.log('dismissed');
|
||||||
|
@ -3,17 +3,17 @@ import { Component } from '@angular/core';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'page-one',
|
selector: 'page-one',
|
||||||
template: `
|
template: `
|
||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-title>Page One</ion-title>
|
<ion-title>Page One</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-content>
|
<ion-content>
|
||||||
Page One
|
Page One
|
||||||
<ul>
|
<ul>
|
||||||
<li>ngOnInit - {{ngOnInitDetection}}</li>
|
<li>ngOnInit - {{ngOnInitDetection}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
export class PopoverPageToPresent {
|
export class PopoverPageToPresent {
|
||||||
|
@ -11,6 +11,11 @@ import { PopoverPageToPresent } from './popover-page-to-present';
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-title>Test</ion-title>
|
<ion-title>Test</ion-title>
|
||||||
|
<ion-buttons slot="end">
|
||||||
|
<ion-button (click)="clickMe()">
|
||||||
|
No event passed
|
||||||
|
</ion-button>
|
||||||
|
</ion-buttons>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-content padding>
|
<ion-content padding>
|
||||||
|
Reference in New Issue
Block a user