ionic-framework

Ionic 4 Camera/ActionSheet Object(…) is not a function

怎甘沉沦 提交于 2019-12-24 09:12:53
问题 I'm trying to use Camera Plugin in Ionic 4, and when the serve is started without errors, in the browser console appears this error: I remove the folder node_modules and reinstall it, but can't fix this. npm install With ActionSheet I have the same error. Dependencies in Package: "dependencies": { "@angular/common": "~6.1.1", "@angular/core": "^6.1.2", "@angular/forms": "~6.1.1", "@angular/http": "~6.1.1", "@angular/platform-browser": "^6.1.2", "@angular/platform-browser-dynamic": "~6.1.1", "

Ionic & AngularFire2 best practice for unsubscribing to observables

旧巷老猫 提交于 2019-12-24 09:01:24
问题 I have a multi-page Ionic-Angular phone app that uses AngularFire2 & Firestore. One of the things I really like about Firestore is offline persistence of data. My question revolves around this data persistence and best practices for unsubscribing to AngularFire2 stream observables. My home page is a list of events and when an event is selected the app routes to a single-event page with this specific event's details. Currently I subscribe to the single-event using AngularFire2 API based on the

Cordova InAppBrowser PDF- iOS

最后都变了- 提交于 2019-12-24 08:48:31
问题 My code is working but not exactly the way I want. I'm using the plugin cordova-plugin-inappbrowser . I have an anchor tag to click and opens up a pdf . The code is as follows: $("#lnkTools").click(function(e){ //e.preventDefault(); url = 'someExternalLink.pdf'; var options = {location: 'yes', clearcache: 'no', toolbar:'no', closebuttoncaption: 'DONE?'}; $cordovaInAppBrowser.open(url, '_blank', options); } The problem I'm facing is that, the PDF doesn't open if I don't exit the app, I have to

using ng-mask for phone

拟墨画扇 提交于 2019-12-24 08:34:44
问题 I still have doubt in using ng-mask, I went through most of the web pages for it to work but it still remains the same. And many people told to use it with input tag of angularjs, after doing so Im not able to mask the input.Or am I making mistake please somebody correct me and give the clarity of using the ng-mask. <input type="tel" name="phoneno" maxlength=13 ng-model="phone.number" ng-mask="(999)999-9999"/> </div> <button class="button2" ng-click="home()">Back</button> &nbsp &nbsp &nbsp

Display items from checkbox array angularjs

荒凉一梦 提交于 2019-12-24 08:25:09
问题 I have this code here angular.module('ionic.example', ['ionic']) .controller('LoginCtrl', function($scope) { $scope.models = [{ "id": "0", "model_number": "BT168562.3", "rotor_drawing_number": 4.01591, "material": "17-4 PH", "number_of_lobes": "5/6", "contour_length": 51.00, "overall_length": 55.00, "major_dia_in": 1.063, "minor_dia_in": 0.761, "rotor_head_dia_in": 1.000, "thread_form": "N/A", "rotor_weight_lbs": 11, "rotor_ecc": 0.0755, "compatibility_weatherford": "", "compatibility_r_&_m":

How to access properties of uninitialized component in Angular?

风流意气都作罢 提交于 2019-12-24 08:23:58
问题 I can't figure out how to access properties of a component in Angular using Ionic Framework Tutorial template. It seems to be uninitialized, because I tried to print it out to the console. Here is the code in app.component.ts: export class MyApp { @ViewChild(Nav) nav: Nav; pages: Array<{title: string, badge: number, component: any}>; constructor( public platform: Platform, public menu: MenuController, public statusBar: StatusBar, public splashScreen: SplashScreen, public authService:

Error to add platform in cordova project

谁说我不能喝 提交于 2019-12-24 08:15:33
问题 I have install cordova but i'm facing the problem to add android platforms. All the steps is going very well but when I'm trying to add platform command "cordova platform add android" cli screen show me "adding android project..." & than nothing happen.. In the project directory platform folder is created but it is empty.. Please help me to solve the problem. Installed system versions are as follows, 1.cordova version 6.2.0 2.node version 4.4.1 3.install sdk api 23 4.install jdk 来源: https:/

Ionic3 android build command not working - FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

故事扮演 提交于 2019-12-24 08:06:56
问题 My ionic 3 application working fine in Ionic serve , But when taking build it’s keep on stops with the following error ==== JS stack trace ========================================= Security context: 000000200D3CFB49 <JS Object> 1: DoJoin(aka DoJoin) [native array.js:~129] [pc=00000315AEFE6C02] (this=000000200D304381 <undefined>,w=000000FF69DCAE69 <JS Array[414]>,x=414,N=000000200D3043C1 <true>,J=000000200D3AE4C9 <String[1]: >,I=000000200D3B46D9 <JS Function ConvertToString (SharedFunctionInfo

Sending data to a server using post method in ionic

三世轮回 提交于 2019-12-24 07:57:32
问题 I am trying to send data to a server with a post method from an ionic development , the problem is I do not understand poque not work. Index <ion-view view-title="Guardar estudiante"> <ion-content class="padding"> <form> <div class="list"> <label class="item item-imput"> <input type="number" placeholder="Documento" ng-model="Usuario.idu"> </label> <label class="item item-imput"> <input type="text" placeholder="Nombre" ng-model="Usuario.nom"> </label> <label class="item item-imput"> <input

How do i publish an updated version of my existing ionic app on google play store?

那年仲夏 提交于 2019-12-24 07:51:42
问题 I have recently launched my first ionic app on play store and now i want to publish a updated version. I have the .keystore file and its password with me but i am not getting the steps to generate the release apk to update my existing ionic app. I would appreciate a help. Thanks 回答1: Start with changing the android-versionCode , android-versionName (optional) and version attributes in the widget tag in your config.xml. Then remove all plugins you only use for development, like console: $