File

src/modules/firetask/components/ft-account-manager/ft-account-manager.ts

Description

Generated class for the AccountManager component.

See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html for more info on Angular 2 Components.

Example

Metadata

selector ft-account-manager
templateUrl ft-account-manager.html

Index

Properties
Methods

Constructor

constructor(app: App, admob: AdMob, session: FtSessionProvider, loading: LoadingController, nav: NavController, alert: AlertController)
Parameters :
Name Type Optional Description
app App
admob AdMob
session FtSessionProvider
loading LoadingController
nav NavController
alert AlertController

Methods

changeEmail
changeEmail()
Returns : void
changeName
changeName()
Returns : void
changePassword
changePassword()
Returns : void
connect
connect(provider: , event: )

Connect Works only in device

Parameters :
Name Type Optional Description
provider
  • current options: facebook, google
event
Returns : void
deleteAccount
deleteAccount()
Returns : void
errorHandler
errorHandler(error: )
Parameters :
Name Type Optional Description
error
Returns : void
showAlert
showAlert(title: , subtitle: )
Parameters :
Name Type Optional Description
title
subtitle
Returns : any
toggleAdmob
toggleAdmob()
Returns : void

Properties

Public admob
admob: AdMob
Type : AdMob
Public alert
alert: AlertController
Type : AlertController
Public app
app: App
Type : App
facebookConnected
facebookConnected: boolean
Type : boolean
Default value : false
googleConnected
googleConnected: boolean
Type : boolean
Default value : false
Public loading
loading: LoadingController
Type : LoadingController
Public nav
nav: NavController
Type : NavController
Public session
session: FtSessionProvider
Type : FtSessionProvider
<div padding-top text-center>
    <ion-list>
      <button ion-item (tap)="changeName()">Change Name</button>
      <button ion-item (tap)="changeEmail()">Change Email</button>
      <button ion-item (tap)="changePassword()">Change Password</button>
      <ion-item>
        <ion-label>Enable Advertising</ion-label>
        <ion-toggle color="secondary" (tap)="toggleAdmob($event)" [(ngModel)]="session.admob"></ion-toggle>
      </ion-item>
    </ion-list>
  
    <ion-list>
      <ion-list-header>
        Social connect
      </ion-list-header>
      <ion-item>
        <ion-label>Google</ion-label>
        <ion-toggle color="secondary" (tap)="connect('google.com', $event)" [(ngModel)]="googleConnected"></ion-toggle>
      </ion-item>
      <ion-item>
        <ion-label>Facebook</ion-label>
        <ion-toggle color="secondary" (tap)="connect('facebook.com', $event)" [(ngModel)]="facebookConnected"></ion-toggle>
      </ion-item>
    </ion-list>
  
  
  
    <ion-list inset>
      <button ion-button (tap)="deleteAccount()" color="danger" outline>Delete account</button>
    </ion-list>
  </div>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""