View Home.page.html
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
<ion-header [translucent]="true"> | |
<ion-toolbar color="primary"> | |
<ion-title> | |
TomTom Maps | |
</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content> | |
<div #map id="map"></div> |
View cap-http.page.ts
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, HttpResponse } from '@capacitor-community/http'; | |
@Component({ | |
selector: 'app-cap-http', | |
templateUrl: './cap-http.page.html', | |
styleUrls: ['./cap-http.page.scss'], | |
}) | |
export class CapHttpPage{ | |
plt: string; |
View ionic-native-adv.page.ts
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-ionic-native-adv', | |
templateUrl: './ionic-native-adv.page.html', | |
styleUrls: ['./ionic-native-adv.page.scss'], | |
}) | |
export class IonicNativeAdvPage{ |
View app.module.ts
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 { NgModule } from '@angular/core'; | |
import { HttpBackend, HttpXhrBackend } from '@angular/common/http'; | |
import { NativeHttpModule, NativeHttpBackend, NativeHttpFallback } from 'ionic-native-http-connection-backend'; | |
import { Platform } from '@ionic/angular'; | |
@NgModule({ | |
declarations: [], | |
imports: [ | |
NativeHttpModule | |
], |
View ionic-native.page.ts
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 { |
View http-client.page.ts
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 { |
View fetch.page.ts
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'; | |
@Component({ | |
selector: 'app-fetch', | |
templateUrl: './fetch.page.html', | |
styleUrls: ['./fetch.page.scss'], | |
}) | |
export class FetchPage { | |
localhost:string = 'localhost'; | |
plt: string; |
View index.js
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 }; |
View landing.page.ts
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'], | |
}) |
View home.page.ts
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) { } |
NewerOlder