This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { Platform } from '@ionic/angular'; | |
import { HttpClient } from '@angular/common/http'; | |
@Component({ | |
selector: 'app-http-client', | |
templateUrl: './http-client.page.html', | |
styleUrls: ['./http-client.page.scss'], | |
}) | |
export class HttpClientPage { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { Platform } from '@ionic/angular'; | |
import { HTTP } from '@ionic-native/http/ngx'; | |
@Component({ | |
selector: 'app-ionic-native', | |
templateUrl: './ionic-native.page.html', | |
styleUrls: ['./ionic-native.page.scss'], | |
}) | |
export class IonicNativePage { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require('firebase-functions'); | |
const cors = require('cors')({ origin: true }); | |
exports._getData = functions.https.onRequest((request, response) => { | |
const res = { data: request.query.data || 'failed' }; | |
response.send(res); | |
}); | |
exports._postData = functions.https.onRequest((request, response) => { | |
const res = { data: request.body.data }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { ActivatedRoute, Router } from '@angular/router'; | |
import { GoogleAuth } from '@codetrix-studio/capacitor-google-auth'; | |
@Component({ | |
selector: 'app-landing', | |
templateUrl: './landing.page.html', | |
styleUrls: ['./landing.page.scss'], | |
}) | |
export class LandingPage implements OnInit { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { ActivatedRoute, Router } from '@angular/router'; | |
import { GoogleAuth } from '@codetrix-studio/capacitor-google-auth'; | |
import { Http } from '@capacitor-community/http'; | |
@Component({ | |
selector: 'app-landing', | |
templateUrl: './landing.page.html', | |
styleUrls: ['./landing.page.scss'], | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { GoogleAuth } from '@codetrix-studio/capacitor-google-auth'; | |
import { Router, NavigationExtras } from '@angular/router'; | |
@Component({ | |
selector: 'app-home', | |
templateUrl: 'home.page.html', | |
styleUrls: ['home.page.scss'], | |
}) | |
export class HomePage { | |
constructor(private router: Router) { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { GoogleAuth } from '@codetrix-studio/capacitor-google-auth'; | |
@Component({ | |
selector: 'app-home', | |
templateUrl: 'home.page.html', | |
styleUrls: ['home.page.scss'], | |
}) | |
export class HomePage { | |
constructor() { } | |
ionViewDidEnter() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { PayPal, PayPalPayment, PayPalConfiguration } from '@ionic-native/paypal/ngx'; | |
@Component({ | |
selector: 'app-paypal', | |
templateUrl: 'paypal.page.html', | |
styleUrls: ['paypal.page.scss'], | |
}) | |
export class PaypalPage { | |
constructor(private payPal: PayPal) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
import { defineComponent } from 'vue'; | |
import { IonButton, IonPage , alertController} from '@ionic/vue'; | |
import { useRouter } from "vue-router"; | |
export default defineComponent({ | |
name: 'Page', | |
components: { | |
IonPage, | |
IonButton | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<ion-page> | |
<ion-header :translucent="true"> | |
<ion-toolbar> | |
<ion-title>Home Page</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content :fullscreen="true"> | |
<ion-header collapse="condense"> |