Quantcast
Channel: Ionic Forum - Latest topics
Viewing all 70446 articles
Browse latest View live

Live Wallpaper for Android?

$
0
0

@jarenks wrote:

I’m working on an application that basically is a repository of images and videos. I would like to give the opportunity to use the videos (webm) as device’s live wallpapers. I saw many applications similar to this, but I did not find a way to do it with Ionic. It’s possible?

Posts: 1

Participants: 1

Read full topic


Error during iOS build using ionic package Ionic V2

$
0
0

@swagatac wrote:

“Cannot parse Null or zero-data
Error reading file: provisioning.plist”

This is the error I was getting when I tried building the app for iOS using ionic package. Can someone tell me what the problem is? I have added all certificates and the right password for the .p12 certificate.

Posts: 1

Participants: 1

Read full topic

Undefined Function from Provider

$
0
0

@Intense wrote:

I have this code

	loginFB() {
    	this.afAuth.auth.signInWithPopup(new firebase.auth.FacebookAuthProvider()).then(function(result) {
  			// This gives you a Facebook Access Token.
  			var token = result.credential.accessToken;
  			// The signed-in user info.
  			const user = result.user;
  			console.log(user);
        this.pPicture.updatepicURL(user.photoURL);
		});
	};

calling a function from the below provider code

import { Injectable } from '@angular/core';

/*
  Generated class for the PpProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/
@Injectable()
export class PpProvider {
	public picURL:string = 'https://image.flaticon.com/icons/png/512/15/15081.png';
	constructor() {
		console.log('Hello PpProvider Provider');
	}

	updatepicURL() {
		return console.log(url);
	}
}

the issue is that it says cannot access pPicture of undefined

Posts: 1

Participants: 1

Read full topic

Track user sharing activity

$
0
0

@niconovaes wrote:

Hey, guys. How’re you doing?

I’m building a social-video-like app with the latest version of Ionic and firebase, using visual studio code for mac.
One of the main features of my app is giving the users the ability share videos other user have posted, either sharing to their profile in the app or sharing to their own social media profile. Each time they do so, they earn a coin directly to their wallets.

The goal is to track user’s activity so we can know if they have really finished the sharing process and returned to the app before giving them the coin.

Is it something possible to do via API or something to observe if the user is really sharing the content?

I hope I’ve made myself clear with this topic. I’m just a beginner in angular and ionic world, so please be patient if you can :slight_smile:

Thanks! Cheers,
Nico

Posts: 1

Participants: 1

Read full topic

Error: Cannot find module "@angular/core/src/metadata/di"

$
0
0

@Amoun wrote:

Hello everyone, hope you are good,
I find this error and I didn’t find to good solution of it, I spend a lot of time
thanks for help

Error: Uncaught (in promise): Error: Cannot find module "@angular/core/src/metadata/di"
Error: Cannot find module "@angular/core/src/metadata/di"
    at Object.276 (http://localhost:8100/build/4.js:48:7)
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at Object.270 (http://localhost:8100/build/4.js:11:64)
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at http://localhost:8100/build/main.js:54:10
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14976)
    at Object.onInvoke (http://localhost:8100/build/vendor.js:4979:33)
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14916)
    at r.run (http://localhost:8100/build/polyfills.js:3:10143)
    at http://localhost:8100/build/polyfills.js:3:20242
    at c (http://localhost:8100/build/polyfills.js:3:19752)
    at Object.reject (http://localhost:8100/build/polyfills.js:3:19174)
    at NavControllerBase._fireError (http://localhost:8100/build/vendor.js:48008:16)
    at NavControllerBase._failed (http://localhost:8100/build/vendor.js:48001:14)
    at http://localhost:8100/build/vendor.js:48048:59
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14976)
    at Object.onInvoke (http://localhost:8100/build/vendor.js:4979:33)
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14916)
    at r.run (http://localhost:8100/build/polyfills.js:3:10143)
    at http://localhost:8100/build/polyfills.js:3:20242
Ionic Framework: 3.9.2
Ionic App Scripts: 3.1.0
Angular Core: 5.0.0
Angular Compiler CLI: 5.0.0
Node: 6.5.0
OS Platform: Windows 7
Navigator Platform: Win32

Posts: 2

Participants: 1

Read full topic

Version mismatch for module @ionic-native/dialogs

$
0
0

@devmaster wrote:

Hi,

I get the following error

Error: Metadata version mismatch for module /www/projects/project/node_modules/@ionic-native/dialogs/index.d.ts, found version 4, expected 3 …

when I run

$ ionic cordova build browser --prod

It’s working when I build without --prod

Env. info

$ ionic info
cli packages: (projects/project/node_modules)

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 6.5.0

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : browser 4.1.0
    Ionic Framework    : ionic-angular 3.6.0

System:

    Node : v7.10.1
    npm  : 4.2.0
    OS   : Linux 4.4

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : legacy


I need to publish new feature that uses Dialogs module by tomorrow so I would really appreciate any help…

thanks…

Posts: 2

Participants: 1

Read full topic

How to show the column headers for datetime component?

$
0
0

@yan_xiaodi wrote:

I would like to show the specific column headers for datetime component like this:

                                  cancel ok

Year Month Day Hour Minute
2017 11 11 11 20
… … … … …

Because all the options are numbers, I want to add the header to every column to make the datetime component more clear.

Thank you.

Posts: 1

Participants: 1

Read full topic

Event subscription issue when using NavController's getAcitve() to get name of current view

$
0
0

@gauravgnrwl wrote:

Hello Ionic Community,

This is the third time I am trying to port our app from ionic1 to ionic’s latest version. The reason it has been deferred twice before is the lack of flexibility in monitoring navigational events. While trying to find a work-around, I thought I had found a solution to aforementioned impediments, but I seem to have run into a problem yet again.

A brief summary of the why and what:

Disclaimer
My approach to the whole thing might be way off and considered bad practice. I am open to better ways but online searches for a better approach has been a fruitless endeavor. If you think you can see a better way of achieving the required functionality, please feel free to tell me what it is. Thanks in advance.

The Why:
Certain pages on the app have very heavy API calls and redirecting to and from them needlessly really causes the performance of the app to suffer. So restricting unnecessary navigation is a must for us. While this could be done individually for each page using ionViewCanEnter, it seems rather silly when the views can broadly be divided into two categories: pages that require the user to be logged and pages that require the user to not be logged in.

To have the same block of code on each page inside a ionViewCanEnter is not only hard to manage if changes are to be made at a later date, but also a big no-no from the OOP standpoint. The requirement is simple - if the user is logged off, the pages that require the user to be logged on should be completely inaccessible and vice versa.

The What:
After languishing for almost a year now with trying to reduce our technical debt by porting the app from v1 to the latest version, I thought I finally found the solution - using the events API to do what the NavController couldn’t.

The call that is made on every view

ionViewCanEnter():Boolean{
    return this.access.change();
}

The service that is called inside each ionViewCanEnter

public change() {
    return this.events.publish('navigation')[0];
}

The subscription in app.conmponents.js

 events.subscribe('navigation', () => {
    let authenticated = this.authService.authenticated();
    let currentPage = this.navCtrl.getActive()['component']['name'];

    if(this.pages['unauth'].indexOf(currentPage) > -1){
        if(authenticated){
            this.navCtrl.setRoot('Landing');
            return false;
        }else{
            return true;
        }
    }else{
        if(authenticated){
            return true;
        }else{
            this.navCtrl.setRoot('Dashboard');
            return false;
        }
    }
}

The problem

let currentPage = this.navCtrl.getActive()['component']['name'];

Anything after the getActive call seems to not fire. Tried using console.log(currentPage) right after it but nothing happens.

I am not very familiar with type script or with subscriptions, so maybe I’m missing something very basic. So any help would be much appreciated.

Posts: 1

Participants: 1

Read full topic


Injecting environment variables into the build?

$
0
0

@ericeslinger wrote:

I’m working on a front end and back end at the same time. One thing I’d like to do is not have to remember to change the hardwired URL of the backend api when I go from dev to beta to production. In previous projects, where I had more direct control over the build tooling, I’d put an injector (usually using gulp-inject) so that I could stick some compile-time environment variables into index.html before any scripts got parsed. A bit hacky, but not terrible.

Is there any “normal” way to do this in current ionic? I’d like to basically say, “build for dev” and swap some magic strings out for localhost, and then “build for beta” and “build for production” and call it a day.

Posts: 1

Participants: 1

Read full topic

Ios app uploading app store ipv6 network issue

$
0
0

@zeko wrote:

Hello. I created ios app with ionic v1. this app is working well my test ipad device but my app rejected appstore ipv6 networking. How can I solve this issue?

Posts: 1

Participants: 1

Read full topic

Push "data message" not being received with FirebasePlugin

$
0
0

@joterito wrote:

I’m using FirebasePlugin AND Ionic 3 in order to receive both “data message” and “notifications messages” because i need some notifications are managed by user and other only by app. I have followed firebase documentation to create the content of both types of notifications (https://firebase.google.com/docs/cloud-messaging/concept-options?hl=es-419) This is the expected behaviour:

  • App foreground
    Data messages - received and managed by app
    Notification messages - received and managed by app
  • App background
    Data messages - received and managed by app
    Notification messages - received and managed by user (push has to be shown in phone action bar)

This is the code where i’m tryint to receive the push notifications acording with FirebasePluggin doc:
FirebasePlugin.onNotificationOpen(notification => {
});

The issue is i’m not receiving “data messages”. Any idea about how to receive de “data messages” with this pluggin?

-Addtional info - according to firebase doc these are the two types of notifications:
DATA MESSAGES
{
“to” : “bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1…”,
“data” : {
“fieldOne” : “content”,
“fieldTwo” : “content”
},
}
NOTIFICATION MESSAGES
{
“to” : “bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1…”,
“notification” : {
“fieldOne” : “content”,
“fieldTwo” : “content”
}
}

Posts: 1

Participants: 1

Read full topic

Please any one how can i convert website to apk

Onesignal using CocoaPods and Ionic1 unable to build IOS

$
0
0

@Oliver2000 wrote:

Hi guys,

I work on an older App of mine which is Ionic1. For some reason I needed to use the newer OneSignal SDK which seems working now only with CocoaPods. At first all went fine, Android works flawless but I am not able anymore to build my IOS app because of CocoaPods. I can do what I want I keep getting the following error:

ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I lost the entire day trying to figure this out, I tried all kind of “pod install, pod clean, pod disintegrate” etc. etc. but without any success. I also found here in this forum the post from @blakgeek and install his plugin “cordova-plugin-cocoapod-support” but keep getting the same error.

I would be happy if anybody can help me here because at this point I am pretty lost.

Thank you in advance

Posts: 1

Participants: 1

Read full topic

Error: exec proxy not found for :: CordovaHttpPlugin :: get

$
0
0

@pawelfrydrych wrote:

Hello,
I created a new project and I’m trying to send GET request to backend with basic authentication.
My backend not receive any request.Every time I get error: 'Error: exec proxy not found for :: CordovaHttpPlugin :: get’
I’m testing in browser by cordova platform run browser.

Code below:

this.http.useBasicAuth('admin','password');
    return this.http.get('http://localhost:8080/awd/all', {}, {}).then(data => {
      console.log(data);
      console.log(data.status);
      console.log(data.data); // data received by server
    })
      .catch(error => {
        console.log(error.status);
        console.log(error.error); // error message as string
        console.log(error.headers);
      });

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

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.1.0
    Cordova Platforms  : android 6.3.0 browser 5.0.1
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v6.11.2
    npm               : 3.10.10
    OS                : Windows 10

Environment Variables:

    ANDROID_HOME : C:\androidsdk

Misc:

    backend : pro

Posts: 1

Participants: 1

Read full topic

Ionic pro build failed

$
0
0

@gpisacco wrote:

**I am trying to do a build on ionic pro **
with cordova-android 6.3.0

I am having a gradle error which was solved by removing ‘~’ and’ ‘^’

Now I am having the error below.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 26].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 21.621 secs
Error: /usr/src/app/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 26].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Failed to upload apk to storage please retry your build.
    Running after script…
    $ clean-up
    Cleaning up files…
    Successful clean up
    ERROR: Job failed: exit status 1

I also tried using 6.2.3 but it gives me:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugManifest’.

Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 32.608 secs
Error: /usr/src/app/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/usr/src/app/platforms/android/AndroidManifest.xml:27:9-31 Error:
Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugManifest’.

Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Failed to upload apk to storage please retry your build.
    Running after script…
    $ clean-up
    Cleaning up files…
    Successful clean up
    ERROR: Job failed: exit status 1

Posts: 1

Participants: 1

Read full topic


I cannot pass my variable

$
0
0

@belcsantiago wrote:

Hello, I was trying to pass my variable from my pag to the component, but i didn’t get. Someone knows?

thanks

Posts: 4

Participants: 2

Read full topic

Pantalla blanca cuando inicia una aplicación en android

$
0
0

@Dekk wrote:

Pantalla en blanco

  • Buenas a todos, tengo un problema con la pantalla blanca al cargar una aplicación.
    Tanto en emulador como en dispositivo real. Al ejecutar “ionic serve” funciona correctamente en el navegador, al compilar “ionic cordova build android” lo hace correctamente pero al instalarlo en una dispositivo se queda en pantalla blanca, son aplicacion recien generadas y antes no tenia este tipo de errores.

Versiones:

  • ionic = 3.18.0
  • cordova = 7.1.0
  • node = 8.9.1

Gracias

Posts: 1

Participants: 1

Read full topic

Implementing phaser game engine into ionic

$
0
0

@lifesuxtr wrote:

I am trying to integrate phaser and ionic together…I mean one of my pages i would like to display simple phaser game.I did some research on this but couldnt find any updated tutorials.

Are there anyone who did this before ?

thanks

Posts: 1

Participants: 1

Read full topic

Ionic Pro - Downgrade to Free version

$
0
0

@Ozory wrote:

Hi there, How can I get back to the free version?
There is a command like… “ionic unlink” ??

Thanks

Posts: 1

Participants: 1

Read full topic

Ionic build error - You may need an appropriate loader to handle this file type

$
0
0

@sthodupunoori wrote:

What could be causing below error?
Thanks in advance

$ ionic build
Running app-scripts build:
[16:37:38] build dev started …
[16:37:39] clean started …
[16:37:39] clean finished in 8 ms
[16:37:39] copy started …
[16:37:39] deeplinks started …
[16:37:39] deeplinks finished in 214 ms
[16:37:39] transpile started …
[16:37:42] transpile finished in 2.87 s
[16:37:42] preprocess started …
[16:37:42] preprocess finished in 1 ms
[16:37:42] webpack started …
[16:37:42] copy finished in 3.34 s
Error: ./src/pages/balance/balance.ts
Module parse failed: Unexpected token (187:897)
You may need an appropriate loader to handle this file type.
| BalancePage = __decorate([
| Component({
| selector: ‘page-balance’,template:/ion-inline-start:"/Users/santhosh/Documents/martinapp/frontend/src/pages/balance/balance.html"/<ion-header>\n <ion-navbar mode="ios" >\n <ion-buttons start>\n <button menuToggle ion-button color="navigationtText">\n <ion-icon name="menu"></ion-icon>\n </button>\n </ion-buttons>\n <ion-title>Balance</ion-title>\n </ion-navbar>\n</ion-header>\n\n\n<ion-content>\n <div class="image-container">\n <p class="balance">\n ${{currentBalance}}\n </p>\n </div>\n <div class="top-up" (click)="topUp()">\n TOP UP AMOUNT\n </div>\n <br>\n <div padding>\n <div (click)="selectTopUpAmount(item)" [ngClass]="(item.selected) ? \'suggested-topups-selected\' : \'suggested-topups\'" class="" *ngFor="let item of topUpValues">\n ${{item.value}}\n </div>\n </div>\n <br>\n <img height="2" width="90%" src="assets/images/seprator-grey.png" class="seprator">\n <div justify-content-center align-items-center class="button-container">\n <button (click)="makeAPurchase()" ion-button icon-left round block class="buy-button">\n Buy Now\n </button>\n </div>\n</ion-content>\n/ion-inline-end:"/Users/santhosh/Documents/martinapp/frontend/src/pages/balance/balance.html"/,
| }),
| __metadata(“design:paramtypes”, [NavController,
@ ./src/pages/balance/balance.module.ts 9:0-40
@ ./src lazy
@ ./node_modules/ionic-angular/util/ng-module-loader.js
@ ./node_modules/ionic-angular/util/module-loader.js
@ ./node_modules/ionic-angular/components/popover/popover-component.js
@ ./node_modules/ionic-angular/index.js
@ ./src/app/app.module.ts
@ ./src/app/main.ts,./src/pages/price/price.ts
Module parse failed: Unexpected token (31:1818)
You may need an appropriate loader to handle this file type.
| PricePage = __decorate([
| Component({
| selector: ‘page-price’,template:/ion-inline-start:"/Users/santhosh/Documents/martinapp/frontend/src/pages/price/price.html"/<ion-header>\n\n\n\n <ion-navbar mode="ios" hideBackButton>\n\n <ion-buttons start (click)="goBack()">\n\n <button class="navigation-icon" ion-button color="navigationtText" >\n\n <ion-icon name="md-close"></ion-icon>\n\n </button>\n\n </ion-buttons>\n\n <ion-title>Price</ion-title>\n\n <ion-buttons end (click)="update()">\n\n <button ion-button round small color="primary">Update</button>\n\n </ion-buttons>\n\n </ion-navbar>\n\n</ion-header>\n\n\n\n<ion-content>\n\n <div class="image-container">\n\n <p>"BACK YOUR WORDS WITH YOUR MONEY."</p>\n\n </div>\n\n <ion-list *ngIf="pricing">\n\n <ion-item>\n\n <ion-label class="detail-title">Guarantee Amont</ion-label>\n\n <ion-select [(ngModel)]="pricing.guaranteeAmount">\n\n <ion-option value="50">$50</ion-option>\n\n <ion-option value="100">$100</ion-option>\n\n <ion-option value="150">$150</ion-option>\n\n <ion-option value="200">$200</ion-option>\n\n </ion-select>\n\n </ion-item>\n\n <ion-item>\n\n <ion-label class="detail-title">Challenge Price</ion-label>\n\n <ion-select [(ngModel)]="pricing.challengePrice">\n\n <ion-option value="10">$10</ion-option>\n\n <ion-option value="15">$15</ion-option>\n\n <ion-option value="20">$20</ion-option>\n\n <ion-option value="25">$25</ion-option>\n\n <ion-option value="30">$30</ion-option>\n\n <ion-option value="35">$35</ion-option>\n\n </ion-select>\n\n </ion-item>\n\n <ion-item>\n\n <ion-label class="detail-title">Free view Price</ion-label>\n\n <div item-end class="free-view-price">\n\n ${{pricing.freeViewPrice}} \n\n </div>\n\n </ion-item>\n\n <ion-item>\n\n <ion-label class="detail-title">Paid view Price</ion-label>\n\n <ion-select [(ngModel)]="pricing.paidViewPrice">\n\n <ion-option value="0.10">$0.10</ion-option>\n\n <ion-option value="0.20">$0.20</ion-option>\n\n <ion-option value="0.30">$0.30</ion-option>\n\n <ion-option value="0.40">$0.40</ion-option>\n\n <ion-option value="0.50">$0.50</ion-option>\n\n <ion-option value="0.60">$0.60</ion-option>\n\n <ion-option value="0.70">$0.70</ion-option>\n\n <ion-option value="0.80">$0.80</ion-option>\n\n </ion-select>\n\n </ion-item>\n\n </ion-list>\n\n</ion-content>\n\n/ion-inline-end:"/Users/santhosh/Documents/martinapp/frontend/src/pages/price/price.html"/,
| }),
| __metadata(“design:paramtypes”, [NavController,
@ ./src/pages/price/price.module.ts 9:0-36
@ ./src lazy
@ ./node_modules/ionic-angular/util/ng-module-loader.js
@ ./node_modules/ionic-angular/util/module-loader.js
@ ./node_modules/ionic-angular/components/popover/popover-component.js
@ ./node_modules/ionic-angular/index.js
@ ./src/app/app.module.ts
@ ./src/app/main.ts,./src/pages/earnings/earnings.ts
Module parse failed: Unexpected token (66:1162)
You may need an appropriate loader to handle this file type.
| EarningsPage = __decorate([
| Component({
| selector: ‘page-earnings’,template:/ion-inline-start:"/Users/santhosh/Documents/martinapp/frontend/src/pages/earnings/earnings.html"/<ion-header>\n <ion-navbar mode="ios" >\n <ion-buttons start>\n <button menuToggle ion-button color="navigationtText">\n <ion-icon name="menu"></ion-icon>\n </button>\n </ion-buttons>\n <ion-title>Earnings</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content>\n <div class="image-container">\n <p>\n ${{totalEarings}}\n </p>\n </div>\n <ion-row \n *ngFor="let i of earnings;\n let myIndex = index;"\n [ngClass]="{\'earning-row-selected\' : (i.selected), \'earning-row\' : !(i.selected) && (myIndex < earnings.length-1), \'earning-row-last\' : (myIndex == earnings.length-1)}"\n (click)="selectEarning(i)"\n >\n <ion-col col-33 class="first-col">\n <div class="title">Truth</div>\n <div class="detail">#{{index}}</div>\n </ion-col>\n <ion-col col-33>\n <div class="title">Views</div>\n <div class="detail">1</div>\n </ion-col>\n <ion-col col-33>\n <div class="title">Earnings</div>\n <div class="detail">${{i.amountEarned}}</div>\n </ion-col>\n </ion-row>\n <img width="100%" src="assets/images/footer-seprator.png">\n <ion-row ngClass="bottom">\n <ion-col col-33 class="first-col" align-self-center>\n <div class="total-text">TOTAL</div>\n </ion-col>\n <ion-col col-33>\n <div class="total-views" align-self-center>\n <ion-icon name="custom-view" class="view-icon"></ion-icon>\n 10</div>\n </ion-col>\n <ion-col col-33 align-self-center>\n <div class="total">${{totalEarings}}</div>\n </ion-col>\n </ion-row>\n</ion-content>\n/ion-inline-end:"/Users/santhosh/Documents/martinapp/frontend/src/pages/earnings/earnings.html"/,
| }),
| __metadata(“design:paramtypes”, [NavController,
@ ./src/pages/earnings/earnings.module.ts 9:0-42
@ ./src lazy
@ ./node_modules/ionic-angular/util/ng-module-loader.js
@ ./node_modules/ionic-angular/util/module-loader.js
@ ./node_modules/ionic-angular/components/popover/popover-component.js
@ ./node_modules/ionic-angular/index.js
@ ./src/app/app.module.ts
@ ./src/app/main.ts,./src/pages/truth-details/truth-details.ts
Module parse failed: Unexpected token (73:2624)
You may need an appropriate loader to handle this file type.
| TruthDetailsPage = __decorate([
| Component({
| selector: ‘page-truth-details’,template:/ion-inline-start:"/Users/santhosh/Documents/martinapp/frontend/src/pages/truth-details/truth-details.html"/<ion-header>\n <ion-navbar>\n <ion-buttons start>\n <button menuToggle ion-button color="navigationtText">\n <ion-icon name="custom-menu"></ion-icon>\n </button>\n </ion-buttons>\n <ion-title>Truth</ion-title>\n <ion-buttons end (click)="goToComment()">\n <button ion-button color="primary">\n <ion-icon name="custom-comment"></ion-icon>\n </button>\n </ion-buttons>\n </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n <div class="segment-contianer">\n <ion-segment mode="ios" [(ngModel)]="viewType" color="primary" (ionChange)="viewTypeChanged($event)">\n <ion-segment-button value="free">\n Free\n </ion-segment-button>\n <ion-segment-button value="paid">\n Paid\n </ion-segment-button>\n </ion-segment>\n </div>\n <div class="free-view" *ngIf="viewType == \'free\'" padding>\n <div class="set-text">\n {{getFreeStatement().statement}}\n </div>\n </div>\n <div class="paid-view" *ngIf="viewType == \'paid\'" padding>\n <div class="set-text">\n {{getPaidStatement().statement}}\n </div>\n </div>\n\n <ion-item no-lines class="set-loc2" *ngIf="getStatement().location && getStatement().location.description">\n <ion-icon color="primary" name="custom-location"></ion-icon>\n {{getStatement().location.description}}\n </ion-item>\n\n <div class="selected-photo-container2"\n *ngFor="let img of getStatement().pic">\n <img src="{{img}}" width="100%">\n <div class="selected-photo-options">\n <ion-row align-items-center>\n <ion-col col-1>\n <!-- <ion-icon name="custom-image-icon" color="primary"></ion-icon> -->\n </ion-col>\n <ion-col col-10>\n <!-- <p class="image-name">imagename.jpg</p>\n <p class="image-size">66kb</p> -->\n </ion-col>\n </ion-row>\n </div>\n </div>\n <img height="1" width="90%" src="assets/images/seprator.png" class="seprator">\n</ion-content>\n\n<ion-footer class="footer">\n <ion-item no-lines class="button-container">\n <button (click)="purchasePaidView()" ion-button icon-left round block\n class="purchase-button">\n <ion-icon class="purchase-icon" name="custom-purchase-card"></ion-icon>\n Purchase ${{getFreeStatement().pricing.paidViewPrice}}\n </button>\n </ion-item>\n <!-- <ion-row class="set-bg">\n <ion-col col-2></ion-col>\n <ion-col col-8>\n <div class="set-postbtn" text-center><ion-icon class="set-icon" name="custom-post-comment-icon"></ion-icon> <strong>POST YOUR COMMENT</strong></div>\n </ion-col>\n <ion-col col-2></ion-col>\n <ion-col></ion-col>\n </ion-row> -->\n <!-- <button ion-button icon-left block class="purchase-button">\n <ion-icon class="set-icon" name="custom-post-comment-icon"></ion-icon>\n POST YOUR COMMENT\n </button> -->\n</ion-footer>\n/ion-inline-end:"/Users/santhosh/Documents/martinapp/frontend/src/pages/truth-details/truth-details.html"/,
| }),
| __metadata(“design:paramtypes”, [NavController,
@ ./src/pages/truth-details/truth-details.module.ts 9:0-51
@ ./src lazy
@ ./node_modules/ionic-angular/util/ng-module-loader.js
@ ./node_modules/ionic-angular/util/module-loader.js
@ ./node_modules/ionic-angular/components/popover/popover-component.js
@ ./node_modules/ionic-angular/index.js
@ ./src/app/app.module.ts
@ ./src/app/main.ts
at BuildError.Error (native)
at new BuildError (/Users/santhosh/Documents/martinapp/frontend/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at callback (/Users/santhosh/Documents/martinapp/frontend/node_modules/@ionic/app-scripts/dist/webpack.js:121:28)
at emitRecords.err (/Users/santhosh/Documents/martinapp/frontend/node_modules/webpack/lib/Compiler.js:269:13)
at Compiler.emitRecords (/Users/santhosh/Documents/martinapp/frontend/node_modules/webpack/lib/Compiler.js:375:38)
at emitAssets.err (/Users/santhosh/Documents/martinapp/frontend/node_modules/webpack/lib/Compiler.js:262:10)
at applyPluginsAsyncSeries1.err (/Users/santhosh/Documents/martinapp/frontend/node_modules/webpack/lib/Compiler.js:368:12)
at next (/Users/santhosh/Documents/martinapp/frontend/node_modules/tapable/lib/Tapable.js:218:11)
at Compiler.compiler.plugin (/Users/santhosh/Documents/martinapp/frontend/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
at Compiler.applyPluginsAsyncSeries1 (/Users/santhosh/Documents/martinapp/frontend/node_modules/tapable/lib/Tapable.js:222:13)

Posts: 2

Participants: 1

Read full topic

Viewing all 70446 articles
Browse latest View live


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