@ionic/angular#NavController TypeScript Examples

The following examples show how to use @ionic/angular#NavController. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: transfer.page.ts    From capture-lite with GNU General Public License v3.0 6 votes vote down vote up
constructor(
    private readonly activeRoute: ActivatedRoute,
    private readonly diaBackendWalletService: DiaBackendWalletService,
    private readonly blockingActionService: BlockingActionService,
    private readonly storeService: DiaBackendStoreService,
    private readonly dialog: MatDialog,
    private readonly navCtrl: NavController,
    private readonly errorService: ErrorService,
    private readonly translocoService: TranslocoService,
    private readonly platform: Platform
  ) {
    this.activeRoute.paramMap.subscribe(paramMap => {
      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
      this.mode = paramMap.get('mode')!;
    });
  }
Example #2
Source File: app.component.ts    From fyle-mobile-app with MIT License 6 votes vote down vote up
constructor(
    private platform: Platform,
    private router: Router,
    private authService: AuthService,
    private userEventService: UserEventService,
    private menuController: MenuController,
    private deviceService: DeviceService,
    private appVersionService: AppVersionService,
    private routerAuthService: RouterAuthService,
    private networkService: NetworkService,
    private freshChatService: FreshChatService,
    private zone: NgZone,
    private deepLinkService: DeepLinkService,
    private pushNotificationService: PushNotificationService,
    private trackingService: TrackingService,
    private loginInfoService: LoginInfoService,
    private navController: NavController,
    private popoverController: PopoverController
  ) {
    this.initializeApp();
    this.registerBackButtonAction();
  }
Example #3
Source File: service-map.page.ts    From Uber-ServeMe-System with MIT License 6 votes vote down vote up
constructor(
    public toastCtrl: ToastController,
    private platform: Platform,
    private loadingCtrl: LoadingController,
    // private ngZone: NgZone,
    public route: Router,
    public activatedRoute: ActivatedRoute,
    public nav: NavController,
    private elementRef: ElementRef,
    private renderer: Renderer2,
    public modalCtrl: ModalController,
    public firestore: AngularFirestore,
    public navCtrl: NavController,
    // private dataService: DataService,
  ) { 
    // console.log('declared var:', google)

    // this.activateRoute.queryParams.subscribe((data: any) => {
    //   console.log("data.service:", data.service)
    //   this.service = data.service
    //   console.log("service1:", this.service)
    // })
  }
Example #4
Source File: capture-receipt.component.ts    From fyle-mobile-app with MIT License 6 votes vote down vote up
constructor(
    private modalController: ModalController,
    private trackingService: TrackingService,
    private router: Router,
    private navController: NavController,
    private offlineService: OfflineService,
    private transactionsOutboxService: TransactionsOutboxService,
    private imagePicker: ImagePicker,
    private networkService: NetworkService,
    private accountsService: AccountsService,
    private popoverController: PopoverController,
    private loaderService: LoaderService
  ) {}
Example #5
Source File: sending-post-capture.page.ts    From capture-lite with GNU General Public License v3.0 6 votes vote down vote up
constructor(
    private readonly router: Router,
    private readonly route: ActivatedRoute,
    private readonly diaBackendAssetRepository: DiaBackendAssetRepository,
    private readonly proofRepository: ProofRepository,
    private readonly confirmAlert: ConfirmAlert,
    private readonly translocoService: TranslocoService,
    private readonly diaBackendTransactionRepository: DiaBackendTransactionRepository,
    private readonly blockingActionService: BlockingActionService,
    private readonly diaBackendAuthService: DiaBackendAuthService,
    private readonly diaBackendContactRepository: DiaBackendContactRepository,
    private readonly errorService: ErrorService,
    private readonly navController: NavController
  ) {}
Example #6
Source File: split-expense.page.ts    From fyle-mobile-app with MIT License 6 votes vote down vote up
constructor(
    private activatedRoute: ActivatedRoute,
    private formBuilder: FormBuilder,
    private offlineService: OfflineService,
    private categoriesService: CategoriesService,
    private dateService: DateService,
    private splitExpenseService: SplitExpenseService,
    private popoverController: PopoverController,
    private transactionService: TransactionService,
    private fileService: FileService,
    private navController: NavController,
    private router: Router,
    private transactionsOutboxService: TransactionsOutboxService,
    private reportService: ReportService,
    private matSnackBar: MatSnackBar,
    private snackbarProperties: SnackbarPropertiesService,
    private trackingService: TrackingService
  ) {}
Example #7
Source File: app.component.ts    From onchat-web with Apache License 2.0 6 votes vote down vote up
constructor(
    public globalData: GlobalData,
    private app: Application,
    private peer: Peer,
    private overlay: Overlay,
    private navCtrl: NavController,
    private userService: UserService,
    private cacheService: CacheService,
    private socket: Socket,
    private onChatService: OnChatService,
    private feedbackService: FeedbackService,
    private messageDescPipe: MessageDescPipe,
    @Inject(WINDOW) private window: Window,
    @Inject(DOCUMENT) private document: Document,
  ) { }
Example #8
Source File: analysis.page.ts    From casual-chess with GNU General Public License v3.0 6 votes vote down vote up
constructor(
    private afs: AngularFirestore,
    private route: ActivatedRoute,
    private navCtrl: NavController,
    private http: HttpClient,
    private menuController: MenuController,
    public alertController: AlertController,
    public translate: TranslateService,
    private utils: UtilsService,
    private configurationService: ConfigurationService,
    private toast: ToastController,
    public modalController: ModalController) {
  }
Example #9
Source File: add-service.page.ts    From Uber-ServeMe-System with MIT License 6 votes vote down vote up
// private coordinates: any
  // private latitude: any
  // private longitude: any

  constructor(
    private homeServiceService: HomeServiceService,
    private activatedRoute: ActivatedRoute,
    private navCtrl: NavController,
    private loadingCtrl: LoadingController,
    private userService: UserService,
    private toastCtrl: ToastController,
    // private geolocation: Geolocation,
  ) {
    this.homeSeviceId = this.activatedRoute.snapshot.params['id'];
    if (this.homeSeviceId) this.loadProduct();
    
    // this.geolocation.getCurrentPosition(resp => {
    //   this.latitude = resp.coords.latitude
    //   this.longitude = resp.coords.longitude
    //   const infoWindow = new google.maps.InfoWindow;
    // }), err=> { console.log(err)}
  }
Example #10
Source File: app.component.ts    From contact-tracer with MIT License 6 votes vote down vote up
constructor(
        private platform: Platform,
        private splashScreen: SplashScreen,
        private statusBar: StatusBar,
        private bluetoothLE: BluetoothLE,
        private databaseService: DatabaseService,
        private authService: AuthService,
        private loadingService: LoadingService,
        private navCtrl: NavController
    ) {
        this.initializeApp();

    }
Example #11
Source File: home.ts    From Elastos.Essentials.App with MIT License 6 votes vote down vote up
constructor(
    public navCtrl: NavController,
    private globalNavService: GlobalNavService,
    private translate: TranslateService,
    private walletService: WalletService,
    private splashScreen: SplashScreen,
    private migrationService: MigrationService,
    public globalNativeService: GlobalNativeService,
  ) { }
Example #12
Source File: service-confirm.page.ts    From Uber-ServeMe-System with MIT License 6 votes vote down vote up
constructor(
    public router: Router,
    public toastCtrl: ToastController,
    private platform: Platform,
    private loadingCtrl: LoadingController,
    public route: Router,
    public activateRoute: ActivatedRoute,
    public nav: NavController,
    public firestore: AngularFirestore,
  ) { 
    this.activateRoute.queryParams.subscribe(params => {
      console.log('params: ', params);
      if (params && params.vendor) {
        this.data = JSON.parse(params.vendor);
      }
      if (params && params.back) {
        this.back = params.back;
      }
      console.log('params: ', this.back);
    })

  }
Example #13
Source File: new-packet.ts    From Elastos.Essentials.App with MIT License 6 votes vote down vote up
constructor(
    public navCtrl: NavController,
    private globalNavService: GlobalNavService,
    private didSessions: GlobalDIDSessionsService,
    private alertCtrl: AlertController,
    private uiService: UiService,
    private globalNativeServce: GlobalNativeService,
    private walletService: WalletService,
    private walletNetworkService: WalletNetworkService,
    private walletNetworkUIService: WalletNetworkUIService,
    private translate: TranslateService,
    public theme: GlobalThemeService,
    private modalCtrl: ModalController,
    public packetService: PacketService,
    private themeService: ThemeService,
    private networksService: NetworksService
  ) { }
Example #14
Source File: place-request.page.ts    From Uber-ServeMe-System with MIT License 6 votes vote down vote up
constructor(
    private homeServiceService: HomeServiceService,
    private activatedRoute: ActivatedRoute, 
    private navCtrl: NavController,
    private loadingCtrl: LoadingController,
    private userService: UserService,
    private toastCtrl: ToastController,
    private router: Router,
    public activateRoute: ActivatedRoute,
    public afstore: AngularFirestore,
    public afAuth: AngularFireAuth,
  ) {
    this.homeSeviceId = this.activatedRoute.snapshot.params['id'];
    console.log('placerequest id', this.homeSeviceId)
    if (this.homeSeviceId) this.loadProduct();

    this.activateRoute.queryParams.subscribe(params => {
      console.log('params: ', params);
      if (params && params.vendor) {
        this.data = JSON.parse(params.vendor);
      }
      if (params && params.back) {
        this.back = params.back;
      }
      console.log('params: ', this.back);
    })
  }
Example #15
Source File: pay.ts    From Elastos.Essentials.App with MIT License 6 votes vote down vote up
constructor(
    public navCtrl: NavController,
    private globalNavService: GlobalNavService,
    private route: ActivatedRoute,
    private router: Router,
    public packetService: PacketService,
    private paymentService: PaymentService,
    private uiService: UiService,
    private globalSwitchNetworkService: GlobalSwitchNetworkService,
    private walletService: WalletService,
    private walletNetworkService: WalletNetworkService,
    private ethTransactionService: EVMService,
    private translate: TranslateService
  ) {
    route.queryParams.subscribe(() => {
      if (this.router.getCurrentNavigation().extras.state) {
        this.packetHash = this.router.getCurrentNavigation().extras.state.packetHash;
        void this.fetchPacketInfo();
      }
    });
  }
Example #16
Source File: appliances.page.ts    From Uber-ServeMe-System with MIT License 6 votes vote down vote up
constructor(
    public route: Router,
    public nav: NavController,
    private elementRef: ElementRef,
    private renderer: Renderer2,


    // FIXME
    public firestore: AngularFirestore,
    public activateRoute: ActivatedRoute,

  ) { 

  }
Example #17
Source File: back-button.component.ts    From ionic-pwa-example-moment with MIT License 5 votes vote down vote up
constructor(private readonly navController: NavController) {}
Example #18
Source File: sign-in.page.ts    From blog2020 with MIT License 5 votes vote down vote up
constructor(private readonly navCtrl: NavController,
              private readonly chatService: ChatService,
              private readonly alertCtrl: AlertController) {
  }
Example #19
Source File: info.page.ts    From onchat-web with Apache License 2.0 5 votes vote down vote up
constructor(
    public globalData: GlobalData,
    private overlay: Overlay,
    private navCtrl: NavController,
    private formBuilder: FormBuilder,
    private userService: UserService,
    private destroyer: Destroyer,
  ) { }
Example #20
Source File: settings-routing.module.ts    From Uber-ServeMe-System with MIT License 5 votes vote down vote up
constructor(public nav: NavController) {
  }
Example #21
Source File: public-packets.ts    From Elastos.Essentials.App with MIT License 5 votes vote down vote up
constructor(
    public navCtrl: NavController,
    private globalNavService: GlobalNavService,
    public packetService: PacketService,
    private translate: TranslateService
  ) { }
Example #22
Source File: media-viewer.page.ts    From capture-lite with GNU General Public License v3.0 5 votes vote down vote up
constructor(
    private readonly navController: NavController,
    private readonly route: ActivatedRoute,
    private readonly sanitizer: DomSanitizer
  ) {}
Example #23
Source File: home.page.ts    From contact-tracer with MIT License 5 votes vote down vote up
constructor(
        private databaseService: DatabaseService,
        private platform: Platform,
        private navController: NavController) {

    }
Example #24
Source File: login.page.ts    From ionic-ecommerce-app with MIT License 5 votes vote down vote up
constructor(
    private util: UtilService,
    private navCtrl: NavController, 
  ) { }
Example #25
Source File: home.ts    From Elastos.Essentials.App with MIT License 5 votes vote down vote up
constructor(
    public navCtrl: NavController,
    private globalNavService: GlobalNavService,
    public packetService: PacketService,
    private translate: TranslateService,
    private walletService: WalletService
  ) { }
Example #26
Source File: notifications.page.ts    From fyle-mobile-app with MIT License 5 votes vote down vote up
constructor(
    private authService: AuthService,
    private orgUserSettingsService: OrgUserSettingsService,
    private formBuilder: FormBuilder,
    private offlineService: OfflineService,
    private router: Router,
    private navController: NavController
  ) {}
Example #27
Source File: my-packets.ts    From Elastos.Essentials.App with MIT License 5 votes vote down vote up
constructor(
    public navCtrl: NavController,
    private globalNavService: GlobalNavService,
    public packetService: PacketService,
    private translate: TranslateService
  ) { }