File

src/pages/popover/popover.ts

Metadata

selector page-popover
template
<ion-list>
  <!--<ion-list-header>Ionic</ion-list-header>-->
  <button ion-item (click)="goToProfilePage()">Profilo</button>
  <button ion-item (click)="close()">Impostazioni</button>
  <button ion-item (click)="logOut()">Disconnetti</button>
</ion-list>
templateUrl popover.html

Index

Properties
Methods

Constructor

constructor(viewCtrl: ViewController)
Parameters :
Name Type Optional Description
viewCtrl ViewController

Methods

close
close()

chiudo il popover menu

Returns : void
goToProfilePage
goToProfilePage()

chiudo il popover passando 'ProfilePage' al chiamante (lista conversazioni)

Returns : void
logOut
logOut()

chiudo il popover passando 'logOut' al chiamante (lista conversazioni)

Returns : void

Properties

Public viewCtrl
viewCtrl: ViewController
Type : ViewController
import { Component } from '@angular/core';
import { ViewController, IonicPage } from 'ionic-angular';

@IonicPage()
@Component({
  selector: 'page-popover',
  templateUrl: 'popover.html',
  template: `
    <ion-list>
      <!--<ion-list-header>Ionic</ion-list-header>-->
      <button ion-item (click)="goToProfilePage()">Profilo</button>
      <button ion-item (click)="close()">Impostazioni</button>
      <button ion-item (click)="logOut()">Disconnetti</button>
    </ion-list>
  `
})

export class PopoverPage {
  constructor(
    public viewCtrl: ViewController
  ) {}
  /**
   * chiudo il popover menu
   */
  close() {
    this.viewCtrl.dismiss();
  }
  /**
   * chiudo il popover passando 'ProfilePage' al chiamante (lista conversazioni)
   */
  goToProfilePage(){
    this.viewCtrl.dismiss("ProfilePage");
  }
  /**
   * chiudo il popover passando 'logOut' al chiamante (lista conversazioni)
   */
  logOut() {
    this.viewCtrl.dismiss("logOut");
  }
}
<!--
  Generated template for the PopoverPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>popover</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>

</ion-content>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""