Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all 49293 articles
Browse latest View live

How to set order of multiple Typescript functions

$
0
0

@jamesharvey wrote:

Hello guys,

How can I set several functions happen in chronological order in typescript?
I have many functions which should not happen at a time but they’re all assigned to a single button.

For example, there are three functions linked to this button.

button01function() {

  const myModal = this.modal.create('ModalPage');
  myModal.present();

  this.insomnia.allowSleepAgain();

  this.unregisterBackButtonAction && this.unregisterBackButtonAction();

}

myModal.present() should happen first and then this.insomnia.allowSleepAgain(); should happen 2 seconds later. The last one should happen 5 seconds later.

How can I set this kind of timing on typescript function?

Thanks in advance!

Posts: 7

Participants: 2

Read full topic


Cant not run app in browser

$
0
0

@prabhur wrote:

E:>cd ionic

E:\Ionic>cd cutePuppyPics

E:\Ionic\cutePuppyPics>ionic serve
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port
35729 --dev-logger-port 53703 --nobrowser - Ctrl+C to cancel
[22:02:41] watch started …
[22:02:41] build dev started …
[22:02:41] clean started …
[22:02:41] clean finished in less than 1 ms
[22:02:41] copy started …
[22:02:41] deeplinks started …
[22:02:41] deeplinks finished in 31 ms
[22:02:41] transpile started …
[22:02:46] transpile finished in 4.70 s
[22:02:46] preprocess started …
[22:02:46] preprocess finished in less than 1 ms
[22:02:46] webpack started …
[22:02:46] copy finished in 5.01 s
[22:02:54] webpack finished in 8.53 s
[22:02:54] sass started …
[22:02:56] sass finished in 1.14 s
[22:02:56] postprocess started …
[22:02:56] postprocess finished in 16 ms
[22:02:56] lint started …
[22:02:56] build dev finished in 14.67 s
[22:02:56] watch ready in 14.76 s
[22:02:56] dev server running: http://localhost:8100/

[OK] Development server running!
Local: http://localhost:8100
External: http://192.168.1.5:8100, http://192.168.247.1:8100,
http://192.168.131.1:8100
DevApp: cutePuppyPics@8100 on Prabhu-PC

E:\Ionic\cutePuppyPics>ionic cordova run browser --port=8100

cordova platform add browser --save
Using cordova-fetch for cordova-browser@~5.0.1

(node:7008) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 1): CordovaError: Failed to fetch platform cordova-browser@~5.0.1
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code ENOENT
(node:7008) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.

Running app-scripts build: --platform browser --target cordova
[22:03:31] build dev started …
[22:03:31] clean started …
[22:03:31] clean finished in less than 1 ms
[22:03:31] copy started …
[22:03:31] deeplinks started …
[22:03:31] deeplinks finished in 47 ms
[22:03:31] transpile started …
[22:03:36] transpile finished in 4.39 s
[22:03:36] preprocess started …
[22:03:36] preprocess finished in less than 1 ms
[22:03:36] webpack started …
[22:03:36] copy finished in 4.76 s
[22:03:43] webpack finished in 7.74 s
[22:03:43] sass started …
[22:03:45] sass finished in 1.12 s
[22:03:45] postprocess started …
[22:03:45] postprocess finished in 16 ms
[22:03:45] lint started …
[22:03:45] build dev finished in 13.40 s

cordova run browser
(node:3336) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 1): CordovaError: No platforms added to this project. Please use cordo va platform add <platform>.
(node:3336) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.

[OK] Your app has been deployed.
Did you know you can live-reload changes from your app with --livereload?

[22:03:48] lint finished in 3.51 s

E:\Ionic\cutePuppyPics>ionic info

cli packages: (C:\Users\Prabhu\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.6
Cordova Platforms  : none
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v8.9.3
npm  : 5.5.1
OS   : Windows 7

Environment Variables:

ANDROID_HOME : D:\Android SDK

Misc:

backend : pro

Posts: 1

Participants: 1

Read full topic

Help to bulid android

$
0
0

@menaaziz wrote:

when i use command
$ ionic cordova platform add android
show me this
Unable to load PlatformApi from platform. Error: Module ‘fsevents’ is not compatible with platform 'win32’
Error: Unhandled “error” event. (The platform “fsevents” does not appear to be a valid cordova platform. It is missing API.js. fsevents not supported.)
[ERROR] Exception:

and after some times show me this
Error: Cannot read property ‘variables’ of undefined

[ERROR] Exception:

Posts: 1

Participants: 1

Read full topic

Problem in loading page first time

How to open audio picker view in ionic 3?

$
0
0

@sofianeee wrote:

Hi there
I wanna choose an audio file from my device so i will redirect the user to the audio directory
how i can acheive this ?
Thanks

Posts: 1

Participants: 1

Read full topic

Nativ camera crash by opening on iPhone device

$
0
0

@Catweazle101 wrote:

Hi all

I use the native camera within my mobile application.

If I test my application with the Ionic DevApp, the camera is working on the device.

When I deploy my application to the ios-device, the application crashes (application is closing immediately).

Does anybody know, which possibilities I have, to see what’s the problem (any errors?) could be?
Do I have it to debug with Xcode? Is this maybe the only way?

These are my options for the camera:

    const options: CameraOptions = {
      quality: 25,
      correctOrientation: true,
      targetHeight: 1000,
      targetWidth: 1000,
      destinationType: this.camera.DestinationType.DATA_URL,
      encodingType: this.camera.EncodingType.JPEG,
      mediaType: this.camera.MediaType.PICTURE
    }

regards,
Oliver

update:
I removed already now the whole ios-platform and added it again.
Also I removed all my plugins and added it again.

I still have the problem, that my camera crashes on opening on ios-device.

here my current environment settings:


cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.1.2
    Cordova Platforms  : android 6.3.0 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.2
    Node              : v8.9.1
    npm               : 5.6.0
    OS                : macOS High Sierra
    Xcode             : Xcode 9.2 Build version 9C40b

Environment Variables:

    ANDROID_HOME : /Users/oliverwaterkamp/Library/Android/sdk

Misc:

    backend : pro

Posts: 2

Participants: 2

Read full topic

Build fails after deleting /plugins and /node_modules

$
0
0

@danielpal wrote:

Hello all,

I just had a small problem where the tab bar would be cut off by the iPhone X’s home button bar. I followed the issue https://github.com/ionic-team/ionic/issues/13010 and installed a newer version of ionic-angular.
After that my build failed and I tried going back to my original setup. No luck. I got errors related to version missmateches of my packages so I deleted the /node_modules and the /plugings folder, removed the platforms and readded them. Building still does not work although all my configuration files and my entire setup is back to what it was before.

I hope somebody can help me.

Thank you and Merry Christmas!

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 1.3.8
    Cordova Platforms  : ios 4.5.4
    Ionic Framework    : ionic-angular 3.4.2

System:

    Android SDK Tools : 26.0.2
    ios-deploy        : 1.9.2
    Node              : v7.7.3
    npm               : 4.4.4
    OS                : macOS High Sierra
    Xcode             : Xcode 9.2 Build version 9C40b

Environment Variables:

    ANDROID_HOME : /Users/Daniel/Library/Android/sdk/

Misc:

    backend : pro
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-admobpro 2.29.29 "AdMob Plugin Pro"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-console 1.1.0 "Console"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-dialogs 2.0.0 "Notification"
cordova-plugin-email-composer 0.8.11 "EmailComposer"
cordova-plugin-extension 1.5.3 "Cordova Plugin Extension"
cordova-plugin-firebase 0.1.25 "Google Firebase Plugin"
cordova-plugin-globalization 1.0.9 "Globalization"
cordova-plugin-inappbrowser 1.7.2 "InAppBrowser"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 4.1.0 "Splashscreen"
cordova-plugin-statusbar 2.4.0 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlite-storage 2.1.4 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
me.tonny.cordova.plugins.multidex 0.1.0 "Cordova Multi Dex"
onesignal-cordova-plugin 2.2.5 "OneSignal Push Notifications"
uk.co.workingedge.phonegap.plugin.launchnavigator 4.1.2 "Launch Navigator"
"dependencies": {
    "@angular/common": "4.1.3",
    "@angular/compiler": "4.1.3",
    "@angular/compiler-cli": "4.1.3",
    "@angular/core": "4.1.3",
    "@angular/forms": "4.1.3",
    "@angular/http": "4.1.3",
    "@angular/platform-browser": "4.1.3",
    "@angular/platform-browser-dynamic": "4.1.3",
    "@ionic-native/app-version": "4.4.0",
    "@ionic-native/core": "4.2.0",
    "@ionic-native/email-composer": "4.3.0",
    "@ionic-native/firebase": "4.3.0",
    "@ionic-native/firebase-analytics": "4.3.0",
    "@ionic-native/globalization": "4.4.2",
    "@ionic-native/in-app-browser": "4.2.1",
    "@ionic-native/launch-navigator": "4.2.1",
    "@ionic-native/onesignal": "4.2.1",
    "@ionic-native/splash-screen": "3.12.1",
    "@ionic-native/status-bar": "3.12.1",
    "@ionic/storage": "2.0.1",
    "@ngx-translate/core": "9.0.1",
    "@ngx-translate/http-loader": "2.0.0",
    "android-versions": "1.2.1",
    "cordova-multidex": "git+https://github.com/jwall149/cordova-multidex.git",
    "cordova-plugin-actionsheet": "2.3.3",
    "cordova-plugin-admobpro": "2.29.29",
    "cordova-plugin-app-version": "0.1.9",
    "cordova-plugin-console": "1.0.5",
    "cordova-plugin-device": "1.1.4",
    "cordova-plugin-dialogs": "1.3.3",
    "cordova-plugin-email-composer": "0.8.7",
    "cordova-plugin-extension": "1.5.3",
    "cordova-plugin-firebase": "0.1.25",
    "cordova-plugin-globalization": "1.0.9",
    "cordova-plugin-inappbrowser": "1.7.1",
    "cordova-plugin-ionic-webview": "1.1.16",
    "cordova-plugin-splashscreen": "4.0.3",
    "cordova-plugin-statusbar": "2.2.2",
    "cordova-plugin-whitelist": "1.3.1",
    "cordova-sqlite-storage": "2.0.4",
    "gl-ionic2-env-configuration": "0.0.18",
    "ionic-angular": "3.4.2",
    "ionic-plugin-keyboard": "2.2.1",
    "ionicons": "3.0.0",
    "me.tonny.cordova.plugins.multidex": "https://github.com/jwall149/cordova-multidex",
    "moment": "2.19.3",
    "ng-lazyload-image": "3.3.3",
    "ng2-translate": "5.0.0",
    "ngx-pipes": "1.6.1",
    "onesignal-cordova-plugin": "2.2.0",
    "rxjs": "5.4.0",
    "sw-toolbox": "3.6.0",
    "uk.co.workingedge.phonegap.plugin.launchnavigator": "4.0.4",
    "zone.js": "0.8.12"
  },
  "devDependencies": {
    "@ionic/app-scripts": "1.3.8",
    "typescript": "2.3.4"
  }

Posts: 2

Participants: 2

Read full topic

Make a request in provider

$
0
0

@bender86 wrote:

hi,

I’m using Ionic2 and try a lot of tutorials without success.
I have a register page

<form (submit)="register()">
    <ion-list>
      <ion-item>
        <ion-label fixed>EMAIL</ion-label>
        <ion-input type="email" [(ngModel)]="user.email" name="email"></ion-input>
      </ion-item>
      <ion-item>
        <ion-label fixed>PASSWORD</ion-label>
        <ion-input type="password" [(ngModel)]="user.password" name="password"></ion-input>
      </ion-item>
      <ion-item>
        <ion-label fixed>STREET</ion-label>
        <ion-input type="text" [(ngModel)]="user.street" name="street"></ion-input>
      </ion-item>
      <ion-item>
        <ion-label fixed>ZIPCODE</ion-label>
        <ion-input type="text" [(ngModel)]="user.zipcode" name="zipcode"></ion-input>
      </ion-item>
      <ion-item>
        <ion-label fixed>PHONE</ion-label>
        <ion-input type="text" [(ngModel)]="user.phone" name="phone"></ion-input>
      </ion-item>
      <ion-item>
        <ion-label fixed>MOBILE</ion-label>
        <ion-input type="text" [(ngModel)]="user.mobile" name="mobile"></ion-input>
      </ion-item>
      <div padding>
        <button ion-button color="primary" block>Register</button>
      </div>
    </ion-list>
  </form>

Here is my provider:

import { Injectable } from ‘@angular/core’;
import { Http } from ‘@angular/http’;
import ‘rxjs/add/operator/map’;

/*
Generated class for the User provider.

See https://angular.io/guide/dependency-injection for more info on providers
and Angular DI.
*/
@Injectable()
export class UserProvider {
useritem: any;
constructor(public http: Http) {
console.log(‘Hello User Provider’);
}

getUserByID(id: string) {
this.useritem = null;

var url = "http://resteasyshop.be/userrestservice.svc/GetUser/" + id;
var response = this.http.get(url);// = this.http.get(url).map(res => res.json());

//this.http.get(url).subscribe(data => {
//  response = data.json();
//},
//  error => {
//    response = error.json();
//  });
console.log("response:" + response);

}
}
I registred it in app.module.ts
In my page i imported it too: import { UserProvider } from ‘…/…/Providers/User/User’;

In the constructor when i want to pass an object of UserProvider

constructor(public navCtrl: NavController, public navParams: NavParams, public userProvider: UserProvider ) {
    console.log('loadRegister');
    //this.user = this.userProvider.getUserByID("0");// this.navParams.get('user');
    //console.log("test:"+this.user);
  }

I get back this error:

Error: Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using ‘barrel’ index.ts files.
at syntaxError (http://localhost:8100/build/vendor.js:75153:34)
at http://localhost:8100/build/vendor.js:90292:40
at Array.forEach ()
at CompileMetadataResolver._getProvidersMetadata (http://localhost:8100/build/vendor.js:90277:19)
at CompileMetadataResolver.getNgModuleMetadata (http://localhost:8100/build/vendor.js:89847:50)
at JitCompiler._loadModules (http://localhost:8100/build/vendor.js:108171:87)
at JitCompiler._compileModuleAndComponents (http://localhost:8100/build/vendor.js:108132:36)
at JitCompiler.compileModuleAsync (http://localhost:8100/build/vendor.js:108048:37)
at CompilerImpl.compileModuleAsync (http://localhost:8100/build/vendor.js:73989:49)
at PlatformRef.bootstrapModule (http://localhost:8100/build/vendor.js:5796:25)

In all tutorials it seems really easy but i guess i did a mistake

Posts: 1

Participants: 1

Read full topic


Ionic build transpile started error

$
0
0

@thegiffary wrote:

Hi, I’m using ionic framework to develop my mobile application and I use Mapbox javascript sdk in my app.

I read an instruction how to use the sdk. In src/index.html, I imported js and css files like

<script src='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-directions/v3.1.1/mapbox-gl-directions.js'></script>
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-directions/v3.1.1/mapbox-gl-directions.css' type='text/css' />

and in map.ts file, I put this code

var map = new mapboxgl.Map({
      style: 'mapbox://styles/mapbox/basic-v9',
      center: [100.539513, 13.739444],
      zoom: 12,
      pitch: 0,
      minZoom: 1.5, //restrict map zoom - buildings not visible beyond 13
      maxZoom: 17,
      container: 'map'
    });

    var directions = new MapboxDirections({
      accessToken: mapboxgl.accessToken,
      unit: 'metric',
      profile: 'driving',
      container: 'directions',
      proximity: [100.542239, 13.738442],
      controls : { inputs:false, instructions:false, profileSwitcher:false}
    });

    map.addControl(new mapboxgl.NavigationControl());

    map.on('load', function() {
      directions.setOrigin([100.539513, 13.739444]);
      directions.setDestination([98.992523, 18.781490]);

      map.addControl( directions, 'top-left' );
    });

where mapboxgl.accessToken is my secret token.

Everything work well whenI use ionic serve command but when I try to build an app to device using ionic cordova build ios, it show some errror like

[09:39:37]  typescript: src/pages/map/map.ts, line: 35
            Cannot find name 'MapboxDirections'.

      L35:      var directions = new MapboxDirections({
      L36:        accessToken: mapboxgl.accessToken,

Error: Failed to transpile program
    at BuildError.Error (native)
    at new BuildError (/Users/giffary/Documents/cordova/HRoute2/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
    at /Users/giffary/Documents/cordova/HRoute2/node_modules/@ionic/app-scripts/dist/transpile.js:159:20
    at transpileWorker (/Users/giffary/Documents/cordova/HRoute2/node_modules/@ionic/app-scripts/dist/transpile.js:107:12)
    at Object.transpile (/Users/giffary/Documents/cordova/HRoute2/node_modules/@ionic/app-scripts/dist/transpile.js:64:12)
    at /Users/giffary/Documents/cordova/HRoute2/node_modules/@ionic/app-scripts/dist/build.js:109:82

Anyone can help me how to fix this problem.

Thank you.

Posts: 1

Participants: 1

Read full topic

Is there a way to get total header height

$
0
0

@saintxiao wrote:

iphone x header height is more higher than other phone header, is there a way to get total header height for each different platform using css?

Posts: 1

Participants: 1

Read full topic

Service Providers HTPP json

$
0
0

@rafaelmoura wrote:

formely I used this code in my service provider

getData() {
    return this.http.get(this.api + 'states').map( res => res.json());
  }

and used this code im my page component

getData() {
    this.service.getData().subscribe(
      data => this.testes = data,
      err => console.log(err)
    );
  }

But now, I have this problem :slight_smile:
‘property json does not exist on type Object’

why ?

Posts: 4

Participants: 2

Read full topic

Read data from file using filechooser

$
0
0

@bilnus11 wrote:

hello and tnaks for this framework; i’m new in ionic and i want update my sqlite database from xml files,
for new i can do that using http.get(); but my question is how do it whene files are selected using filechooser; here is some code:
filechooser :foleChooser;
filepath : filePath;
this.filechooser.open()
.then(uri => {
this.filepath.resolveNativePath(uri)
.then(filePath => {

})
});

can you give me an example how to achieve this?
thnak you again

Posts: 1

Participants: 1

Read full topic

Javascript push method not working in array inside object

$
0
0

@zaGbian wrote:

As you can see in the code, i tried to dynamically create array values inside an object, it doesn’t have a problem when debugging, but when i tried to use push method in the array it throws an error.I am working on Ionic 3 with angular 4.I am calling the function on input box’s keyup.enter event.
// this is the object
private newsFeeds=[
{
avatarUrl:’…/assets/fb/avatar.png’,
userName:‘Karim Benzema’,
time:‘16 minutes ago’,
caption:‘Wow!!!’,
imageUrl:‘https://upload.wikimedia.org/wikipedia/commons/e/ec/Ara_ararauna_Luc_Viatour.jpg’,
like:‘Like’,
numberOfLikes:2,
comments:[‘hello’],
isCommentEnable:false
},
{
avatarUrl:’…/assets/fb/avatar2.png’,
userName:‘Unknown Singh’,
time:‘2 hrs ago’,
caption:‘Pc:Unknown’,
imageUrl:‘https://i.pinimg.com/736x/50/e0/b6/50e0b65efd2d634053d7a8d1cd9d94fc--so-funny-funny-
stuff.jpg’,
like:‘Like’,
numberOfLikes:3,
comments:[],
isCommentEnable:false
}
];

postComment(index,value){
console.log(${index} : ${value}); //shows correct index and value
this.newsFeeds[index].comments.push(value); //–>error
//Throws runtime error ‘comments.push is not a function’
}

my HTML code:

<ion-list [virtualScroll]= “newsFeeds”>
<ion-card *virtualItem=“let f; let i=index”>
<span *ngIf=“f.isCommentEnable”>
<input type=“text” [(ngModel)]=“f.comments” (keyup.enter)=“postComment(this.i,item.value);” #item>



Posts: 1

Participants: 1

Read full topic

Ionic or angular shared module

$
0
0

@kalador wrote:

hello,

i have trouble to understand shared module face to declarations in app.module.ts, components.module.ts, and mycomponent.module.ts.
On other hand i have trouble to bridge ionic shared module concept use with components.module, face to angular shared module concept use.

A while ago, i thought i had understood this concept but … enabling --prod in build showed me that i don"t understand.

Essentials questions to understand and begin to solve my problem/incomprehension is :

  • do we employ the same concept to use same component in different page and in different component ?
  • what do i need to do to achieve it, in case where i have to reuse several components in differents page and other components ?

Because if i follow shared module concept, i have to declare component in page module that use it and in my-component module that use it too, knowing that page module and my-component module are not related to the same use place.
if i follow this right concept, i am confronted to an error of type ’ type component is part of the declaration of 2 modules […]’.

so what do i need to understand ?

Merry Christmas

Posts: 1

Participants: 1

Read full topic

Timer error

$
0
0

@developer_med wrote:

Error: Uncaught (in promise): Error: Template parse errors:
Can’t bind to ‘timeInSeconds’ since it isn’t a known property of ‘timer’. (“

Countdown Timer


<timer #countdownTimer [ERROR ->][timeInSeconds]=“2700”>
<timer-progress #countdownTimerProgress [timeInSeconds]=“2700”></”): ng:///AppModule/SendManualPage.html@20:27
’timer’ is not a known element:
  1. If ‘timer’ is an Angular component, then verify that it is part of this module.
  2. To allow any element add ‘NO_ERRORS_SCHEMA’ to the ‘@NgModule.schemas’ of this component. ("

    Countdown Timer

    [ERROR ->] <timer-progress #countdownTimerProgress [t"): ng:///AppModule/SendManualPage.html@20:4

Can’t bind to ‘timeInSeconds’ since it isn’t a known property of ‘timer-progress’.

  1. If ‘timer-progress’ is an Angular component and it has ‘timeInSeconds’ input, then verify that it is part of this module.
  2. If ‘timer-progress’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message.
  3. To allow any property add ‘NO_ERRORS_SCHEMA’ to the ‘@NgModule.schemas’ of this component. (" <timer #countdownTimer [timeInSeconds]=“2700”>
    <timer-progress #countdownTimerProgress [ERROR ->][timeInSeconds]=“2700”>

Posts: 1

Participants: 1

Read full topic


IONIC Increasing Image Size

$
0
0

@saidmrn wrote:

Hi guys,i’m having problems with the size of an image.
my image is 24X24 but the ionic is increasing its size.

I’m using this code :
<img src="assets/imgs/star.png" style="background: transparent !important;" item-start/>

But ionic display :
IMAGE

when i need it :
result

Thanks !

Posts: 1

Participants: 1

Read full topic

Ionic grids PSD

$
0
0

@Hellowar wrote:

Hi everyone, I want to know if there is a grid template for example 960.gs but for the ionic because I want to draw my application using photoshop or fireworks and then I just pass it to HTML if it has the right grids.

Posts: 1

Participants: 1

Read full topic

Accessing share point list

$
0
0

@hiralbarot wrote:

Hi guys,
I am getting following error while accessing share point list using ionic app in android emulator!
“No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”
I tried to solve it using ionic CORS issue but no luck!

Anybody having any idea?

Thanks,
Hiral

Posts: 1

Participants: 1

Read full topic

How to keep the old Ionic App while running another new one

$
0
0

@LHLK wrote:

Hi there, good day. I’m new to the Ionic world and I would like to know how to keep the Ionic App already installed in the device while another Ionic App with different names being run on the same device? For instance, an app ABC already run and being installed on the real device and if another app 123 run on the same device, the previous app ABC will kick out by this new 123 app. I tried using the --prod --release flags but same thing happened.

Thanks.
LH

Posts: 1

Participants: 1

Read full topic

How to call synchronous generator function?

$
0
0

@nurkholispragaan wrote:

this is my code

* generator() {
    console.log(1);
    setTimeout(() => {
      console.log(2);
    }, 200);
    console.log(3);
  }

ionic version 3.15.2

Posts: 1

Participants: 1

Read full topic

Viewing all 49293 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>