agreement.component.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { Component, Input, OnInit } from '@angular/core';
  2. import { ModalController } from '@ionic/angular';
  3. import { LoginModule } from '../../login/login.module';
  4. import {
  5. IonContent,
  6. IonButtons,
  7. IonHeader,
  8. IonToolbar,
  9. } from '@ionic/angular/standalone';
  10. import { DeviceService } from '../../../services/device.service';
  11. import { CommonModule } from '@angular/common';
  12. @Component({
  13. selector: 'app-agreement',
  14. templateUrl: './agreement.component.html',
  15. styleUrls: ['./agreement.component.scss'],
  16. standalone: true,
  17. imports: [LoginModule, IonContent, IonButtons, IonHeader, IonToolbar,CommonModule],
  18. })
  19. export class AgreementComponent implements OnInit {
  20. @Input('agreement') agreement: any;
  21. constructor(private modalController: ModalController, public deviceSer: DeviceService
  22. ) { }
  23. ngOnInit() {
  24. console.log(this.agreement);
  25. }
  26. dismiss() {
  27. // using the injected ModalController this page
  28. // can "dismiss" itself and optionally pass back data
  29. this.modalController.dismiss({
  30. dismissed: true,
  31. });
  32. }
  33. }