ionic-framework

CordovaError: Failed to find 'JAVA_HOME' environment variable. Try setting it manually

你。 提交于 2021-01-07 01:03:05
问题 I get a ionic project from a person, and I want to debug it in a real android device. I use this command: ionic cordova run android --device --verbose And in the end I get these error messages: Preparing Firebase on Android No scripts found for hook "before_compile". Failed to find 'JAVA_HOME' environment variable. Try setting it manually. CordovaError: Failed to find 'JAVA_HOME' environment variable. Try setting it manually. I have JAVA_HOME set, indeed if I do echo $JAVA_HOME I get: /usr

CordovaError: Failed to find 'JAVA_HOME' environment variable. Try setting it manually

人走茶凉 提交于 2021-01-07 01:02:42
问题 I get a ionic project from a person, and I want to debug it in a real android device. I use this command: ionic cordova run android --device --verbose And in the end I get these error messages: Preparing Firebase on Android No scripts found for hook "before_compile". Failed to find 'JAVA_HOME' environment variable. Try setting it manually. CordovaError: Failed to find 'JAVA_HOME' environment variable. Try setting it manually. I have JAVA_HOME set, indeed if I do echo $JAVA_HOME I get: /usr

How to set a maximum value for `ion-range`?

丶灬走出姿态 提交于 2021-01-05 21:09:52
问题 I have the following ion-range component. I set the minimum and maximum values to 0 and 120 respectively. But also I want to restrict the movement of the thumb to a lower value than 120 (upper limit), for example: 85 but keeping the previous limits: 0 and 120 . <ion-list> <ion-item> <ion-range min="0" max="120" pin="true" [(ngModel)]="myValue"></ion-range> </ion-item> </ion-list> Example: Any idea on how to achieve this? Thanks! 回答1: I had encountered this same issue and have a quick fix! You

How to set a maximum value for `ion-range`?

点点圈 提交于 2021-01-05 21:08:45
问题 I have the following ion-range component. I set the minimum and maximum values to 0 and 120 respectively. But also I want to restrict the movement of the thumb to a lower value than 120 (upper limit), for example: 85 but keeping the previous limits: 0 and 120 . <ion-list> <ion-item> <ion-range min="0" max="120" pin="true" [(ngModel)]="myValue"></ion-range> </ion-item> </ion-list> Example: Any idea on how to achieve this? Thanks! 回答1: I had encountered this same issue and have a quick fix! You

google map zoom event: Ignored attempt to cancel a touchend event with cancelable=false

南笙酒味 提交于 2021-01-05 13:15:32
问题 I'm using google map in my ionic 2 app, and I want my markers to display/disappear depending on the map's zoom level. So I added the following line in the function "ionViewDidEnter": this.map.addListener('idle', this.adjustMarkerVisibility); However, when I zoom the map (or even just scrolling it), I get a warning "Ignored attempt to cancel a touchend event with cancelable=false, for example because scrolling is in progress and cannot be interrupted." and this.adjustMarkerVisibility() is

google map zoom event: Ignored attempt to cancel a touchend event with cancelable=false

折月煮酒 提交于 2021-01-05 13:14:02
问题 I'm using google map in my ionic 2 app, and I want my markers to display/disappear depending on the map's zoom level. So I added the following line in the function "ionViewDidEnter": this.map.addListener('idle', this.adjustMarkerVisibility); However, when I zoom the map (or even just scrolling it), I get a warning "Ignored attempt to cancel a touchend event with cancelable=false, for example because scrolling is in progress and cannot be interrupted." and this.adjustMarkerVisibility() is

google map zoom event: Ignored attempt to cancel a touchend event with cancelable=false

*爱你&永不变心* 提交于 2021-01-05 13:13:28
问题 I'm using google map in my ionic 2 app, and I want my markers to display/disappear depending on the map's zoom level. So I added the following line in the function "ionViewDidEnter": this.map.addListener('idle', this.adjustMarkerVisibility); However, when I zoom the map (or even just scrolling it), I get a warning "Ignored attempt to cancel a touchend event with cancelable=false, for example because scrolling is in progress and cannot be interrupted." and this.adjustMarkerVisibility() is

google map zoom event: Ignored attempt to cancel a touchend event with cancelable=false

淺唱寂寞╮ 提交于 2021-01-05 13:12:09
问题 I'm using google map in my ionic 2 app, and I want my markers to display/disappear depending on the map's zoom level. So I added the following line in the function "ionViewDidEnter": this.map.addListener('idle', this.adjustMarkerVisibility); However, when I zoom the map (or even just scrolling it), I get a warning "Ignored attempt to cancel a touchend event with cancelable=false, for example because scrolling is in progress and cannot be interrupted." and this.adjustMarkerVisibility() is

google map zoom event: Ignored attempt to cancel a touchend event with cancelable=false

♀尐吖头ヾ 提交于 2021-01-05 13:09:00
问题 I'm using google map in my ionic 2 app, and I want my markers to display/disappear depending on the map's zoom level. So I added the following line in the function "ionViewDidEnter": this.map.addListener('idle', this.adjustMarkerVisibility); However, when I zoom the map (or even just scrolling it), I get a warning "Ignored attempt to cancel a touchend event with cancelable=false, for example because scrolling is in progress and cannot be interrupted." and this.adjustMarkerVisibility() is

Using forms in Ionic throws Error: NodeInjector: NOT_FOUND [ControlContainer]

主宰稳场 提交于 2021-01-05 11:22:05
问题 I have created an Ionic app with a form. Nothing special (code is below). Before I added a form and used the formgroup and stuff it worked all fine. When I started to add the form group and all things connected I get this error: core.js:6260 ERROR Error: Uncaught (in promise): Error: NodeInjector: NOT_FOUND [ControlContainer] Error: NodeInjector: NOT_FOUND [ControlContainer] at getOrCreateInjectable (core.js:5894) at Module.ɵɵdirectiveInject (core.js:21115) at NodeInjectorFactory