File

src/modules/firetask/pages/ft-friends-add/ft-friends-add.ts

Description

Generated class for the FriendsAddPage page.

See http://ionicframework.com/docs/components/#navigation for more info on Ionic pages and navigation.

Metadata

selector page-ft-friends-add
templateUrl ft-friends-add.html

Index

Properties
Methods

Constructor

constructor(navCtrl: NavController, nav: NavController, navParams: NavParams, alert: AlertController, toast: ToastController, loader: LoadingController, friends: FtFriendsProvider, session: FtSessionProvider, utils: FtUtilsProvider)
Parameters :
Name Type Optional Description
navCtrl NavController
nav NavController
navParams NavParams
alert AlertController
toast ToastController
loader LoadingController
friends FtFriendsProvider
session FtSessionProvider
utils FtUtilsProvider

Methods

Public addFriend
addFriend(form: any)

Logic to add a new friend

Parameters :
Name Type Optional Description
form any
Returns : void
ionViewDidLoad
ionViewDidLoad()
Returns : void

Properties

Public alert
alert: AlertController
Type : AlertController
entry
entry: any
Type : any
Public friends
friends: FtFriendsProvider
Type : FtFriendsProvider
Public loader
loader: LoadingController
Type : LoadingController
loading
loading: boolean
Type : boolean
Default value : false
Public nav
nav: NavController
Type : NavController
Public navCtrl
navCtrl: NavController
Type : NavController
Public navParams
navParams: NavParams
Type : NavParams
Public session
session: FtSessionProvider
Type : FtSessionProvider
submitted
submitted: boolean
Type : boolean
Default value : false
Public toast
toast: ToastController
Type : ToastController
Public utils
utils: FtUtilsProvider
Type : FtUtilsProvider
<ion-header>
  <ion-navbar color="secondary">

    <ion-title>Add new friend</ion-title>

    <ion-buttons end>
      <button ion-button icon-only (tap)="remove(entry)" *ngIf="entry.id">
        <ion-icon name="ios-trash-outline"></ion-icon>
      </button>
    </ion-buttons>

  </ion-navbar>
</ion-header>

<ion-content class="task-detail">
  <br /><br />
  <form #friendForm="ngForm" novalidate>

    <ion-grid>
      <ion-row>
        <ion-col col-12>
          <ion-item>
            <ion-label floating color="dark">Email</ion-label>
            <ion-input [(ngModel)]="entry.email" name="email" type="email" #email="ngModel" spellcheck="false" autocapitalize="off" required>
            </ion-input>
          </ion-item>
          <p ion-text [hidden]="email.valid || submitted == false" color="danger" padding-left class="info">
            Email required
          </p>

        </ion-col>
      </ion-row>

    </ion-grid>
  </form>
</ion-content>

<ion-fab right bottom>
  <button [disabled]="friendForm.invalid" ion-fab color="secondary" (tap)="addFriend(friendForm)"><ion-icon name="checkmark" is-active="false"></ion-icon></button>
</ion-fab>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""