ionic-framework

ng-file-upload not uploading in Ionics

℡╲_俬逩灬. 提交于 2019-12-22 11:19:33
问题 I am using ng-file-upload library for my Ionic mobile application and Im having challenges in implementing this library. I also used Codeigniter for my REST API. My upload request should have fields(some data) and the images. here is my code so far: $scope.doSubmitAttachment = function(){ console.log('@@@@@doSubmitAttachement- Process Request--' + $scope.images); $scope.upload($scope.images); }; $scope.upload = function (file) { Upload.upload({ url: 'http://192.168.8.247:130/api/upload',

Backand deep querying

怎甘沉沦 提交于 2019-12-22 11:19:05
问题 I want to know if it is possible to retrieve and the collection of objects that an object holds in Backand. For example - you have an object 'Trip' which has a one-to-many relationship with 'Destination' as a trip can have many destinations. The attribute 'destination' in object 'Trip' is a collection. Is it possible, when querying for a 'Trip' object, that I am able to receive the associated 'Destination' objects that the 'Trip' object has a collection of ? 回答1: While getting the parent

Setting supports-screens for ionic/ Cordova app in Android

≡放荡痞女 提交于 2019-12-22 11:02:44
问题 I am trying to make my ionic/ Cordova app to not support small screens. So I have this below inside my config.xml at the root of the project folder : <config-file parent="/" target="AndroidManifest.xml"> <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="false" /> </config-file> Although the config.xml generated inside \platform\android\res\xml\ has the below content fine: <config-file parent="/" target="AndroidManifest.xml"> <supports-screens

make circle image acording to screen size with css

主宰稳场 提交于 2019-12-22 11:00:51
问题 I am trying to make my images to circle.despite this image has different width and height, I want it to be circle that seems like they have same width and height length. For example; dimension of my image : 250X300. but I want it to be 200X200 circle.actually I can do this easily.the problem is doing this acording to screen size.when I turn my mobile phone to horizontal, it must change acording to screen dimensions. my css code is below .image { height: 100px; width: 100px; border: 2px solid

Fonts not getting applied on android device in ionic 3 app

試著忘記壹切 提交于 2019-12-22 10:58:23
问题 I'm trying to apply my custom font for android application. So I have modified the src/theme/variables.scss and added the following lines: @font-face { font-family: AppFont; src: url("../assets/fonts/RobotoCondensed-Regular.ttf"); } body, span, button, h1, h2, h3, h4, h5, h6, p, ion-item, ion-title { font-family: 'AppFont' !important; } $font-family-base: 'AppFont'; $font-family-ios-base: 'AppFont'; $font-family-md-base: 'AppFont'; $font-family-wp-base: 'AppFont'; and when I run ng serve the

How to create two ionic modal in a cordova app?

蓝咒 提交于 2019-12-22 10:57:07
问题 Hi in my app i have already a ionic modal for login $ionicModal.fromTemplateUrl('templates/login.html', { scope: $scope }).then(function(modal) { $scope.modal = modal; }); Now i need to create a new ionic modal with new html page. How can I do this? 回答1: While the answer is completely valid, but you don't need to create new controller every time you need a modal. app.controller('Ctrl1' function($scope, $ionicModal){ $ionicModal.fromTemplateUrl('modalA.html', { scope: $scope, animation: 'slide

How to show my cordova app in IOS share menu?

▼魔方 西西 提交于 2019-12-22 10:55:05
问题 We have an existing Cordova iOS App for which we need an iOS share extension which will allow Users to to share files from other apps (like Photos, Pages, Numbers, Keynote, etc) with our App (i.e. Export file from Pages to our App). We need the following delivered: Prototype / Sample iOS Cordova App with a share extension setup up for jpg, png, video, pdf and office (xls, xlsx, doc, docx, ppt, pptx) files Extension to either open the Cordova App directly OR to open the Cordova App as a

IONIC Keyboard hide on input focus

扶醉桌前 提交于 2019-12-22 10:54:20
问题 I'm writing an Ionic app that will be used for logistic purposes in the Healthcare sector. The devices that will be used for this app have a build-in barcode scanner and run on android 4.1.1. This scanner inputs data within a input field and submits it by pressing the "enter" key. Due to the scanner being the my "keyboard" in certain situations I want to hide the keyboard on input focus or click. I wrote the following directive using the ionic keyboard cordova plugin: directives.directive(

$cordovaFile.checkDir says folder does not exist but $cordovaFile.createDir says folder already exists

冷暖自知 提交于 2019-12-22 10:37:46
问题 I am trying to work with the ngCordova File plugin as documented here: http://ngcordova.com/docs/plugins/file/, but am getting strange behaviour. I am trying to create a folder if it does not already exist. I am testing for its existence using: $cordovaFile.checkDir(cordova.file.dataDirectory, 'inbound') Now this returns NOT_FOUND_ERR so i try to create the folder subsequently by calling: $cordovaFile.createDir(cordova.file.dataDirectory, 'inbound', false); But this then returns PATH_EXISTS

Tabs disappears ionic 3 after push

自作多情 提交于 2019-12-22 10:36:17
问题 My Tabs disappears after using this.navCtrl.push(NamePage); I don't understand, I need use @ViewChild or another function? I have set tabsHideOnSubPages on false in app.module.ts Example : https://github.com/Nicolas-PL/TestMenu Files is : src/pages/tabs/tabs.ts and src/pages/test/test.ts import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; import { AboutPage } from '../about/about'; import { ContactPage } from '../contact/contact'; import { HomePage } from