angular-nativescript

Nativescript/Angular extending HttpClient

为君一笑 提交于 2020-01-16 09:41:50
问题 I'm since I'm adding nativescript-https to my Nativescript/Angular app I'm making a wrapper. So, since Nativescript's NativeScriptHttpClientModule uses Angular's HttpClientModule I'm extending HttpClient, and I created the http-client.ts file: import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable, from } from 'rxjs'; import * as Https from 'nativescript-https' export interface IRequestOptions { headers?:

Nativescript/Angular extending HttpClient

天大地大妈咪最大 提交于 2020-01-16 09:41:32
问题 I'm since I'm adding nativescript-https to my Nativescript/Angular app I'm making a wrapper. So, since Nativescript's NativeScriptHttpClientModule uses Angular's HttpClientModule I'm extending HttpClient, and I created the http-client.ts file: import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable, from } from 'rxjs'; import * as Https from 'nativescript-https' export interface IRequestOptions { headers?:

Angular workspace with multiple Angular + Nativescript Code sharing projects and a resusable library

前提是你 提交于 2019-12-22 10:46:52
问题 Environment 'tns info' √ Getting NativeScript components versions information... ‼ Update available for component nativescript. Your current version is 5.1.0 and the latest available version is 5.1.1. ‼ Update available for component tns-core-modules. Your current version is 5.1.1 and the latest available version is 5.1.2. √ Component tns-android has 5.1.0 version and is up to date. × Component tns-ios is not installed. CLI: @angular/cli@7.1.4 Cross-platform modules: N/A Android Runtime: