ionic: wo sehen Sie die angezeigten Konsole

Ich bin neu in Ionischen ich bin nach ionic framework-Dokumente, es zu lernen.

Hier ist meine Methode code: Hallo ionisch.ts

  openActionSheet(){
    let actionSheet=this.actionsheetCtrl.create(
    {
        title: 'Modify your album',
        cssClass: 'page-hello-ionic',
        buttons:[
          {
            text: 'Delete',
            role: 'destructive', //will always sort to be on top
            icon: !this.platform.is('ios') ? 'trash' : null,
            handler: () => {
              console.log('Delete clicked');
            }
          },
          {
          text: 'Play',
          icon: !this.platform.is('ios') ? 'arrow-dropright-circle' : null,
          handler: () => {
            console.log('Play clicked');
          }   
        },
        {
          text: 'Favorite',
          icon: !this.platform.is('ios') ? 'heart-outline' : null,
          handler: () => {
            console.log('Favorite clicked');
          }
        },
        {
          text: 'Cancel',
          role: 'cancel', //will always sort to be on the bottom
          icon: !this.platform.is('ios') ? 'close' : null,
          handler: () => {
            console.log('Cancel clicked');
          }
        }
      ]});
    actionSheet.present();
  }

Funktioniert der code einwandfrei. Aber ich will wissen, wo ist console.log() gedruckt. Kann mir jemand helfen?

r u Entwicklung von mobilen app oder web-app ?
mobile-app. aber, ich bin auch mit ionic serve Befehl, um zu überprüfen es im web.

InformationsquelleAutor Riddhi | 2018-03-16

Schreibe einen Kommentar