This file contains hidden or 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> |
This file contains hidden or 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; |
This file contains hidden or 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{ |
This file contains hidden or 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 | |
| ], |
This file contains hidden or 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 hidden or 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 hidden or 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; |
This file contains hidden or 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 hidden or 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 hidden or 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