Guest User

Untitled

a guest
Jul 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. import { Component } from '@angular/core';
  2. import { IonicPage, NavController, NavParams, MenuController, AlertController } from 'ionic-angular';
  3.  
  4. @IonicPage()
  5. @Component({
  6. selector: 'page-terms-and-conditions',
  7. templateUrl: 'terms-and-conditions.html',
  8. })
  9. export class TermsAndConditionsPage {
  10.  
  11. constructor(public navCtrl: NavController,
  12. public navParams: NavParams,
  13. public menu: MenuController,
  14. private alertController: AlertController) {
  15. }
  16.  
  17. showBasicAlert() {
  18. let basicAlert = this.alertController.create({
  19. title: 'Ionic alert',
  20. subTitle: 'ionic alert details',
  21. buttons: ['OK']
  22. });
  23. basicAlert.present();
  24. }
  25. }
  26.  
  27. <ion-header>
  28. <ion-navbar>
  29. <ion-title>Alert Controller</ion-title>
  30. </ion-navbar>
  31. </ion-header>
  32.  
  33. <ion-content padding>
  34. <ion-item-group>
  35. <ion-item-divider color="light">Basic Alerts</ion-item-divider>
  36. <button ion-button full (click)="showBasicAlert()">Basic</button>
  37. </ion-item-group>
  38. </ion-content>
  39.  
  40. import { NgModule } from '@angular/core';
  41. import { IonicPageModule, IonicModule } from 'ionic-angular';
  42. import { TermsAndConditionsPage } from './terms-and-conditions';
  43.  
  44. @NgModule({
  45. declarations: [
  46. TermsAndConditionsPage,
  47. ],
  48. imports: [
  49. IonicPageModule.forChild(TermsAndConditionsPage),
  50. IonicModule
  51. ],
  52. exports: [
  53. TermsAndConditionsPage
  54. ]
  55. })
  56. export class TermsAndConditionsPageModule {}
Add Comment
Please, Sign In to add comment