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

Problem with infinite-scroll

$
0
0

@Dunaan wrote:

Hello there,

I’m quite new with Ionic and I don’t understand how the component “infinite-scroll” works.
A lot of tutorials about this component are made with a random user generator on Internet, but I would like to do it with datas I made myself, such those ones :

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { InfiniteScroll } from 'ionic-angular';

@Component({
  selector: 'page-administrateur',
  templateUrl: 'administrateur.html'
})
export class Administrateur {
  infiniteScroll: InfiniteScroll;
  users = [
    {firstName : "Julie", lastName : "Aubret", mail : "julieaubret@outlook.fr"},
    {firstName : "Thomas", lastName : "Perrot", mail : "thomasperrot@outlook.fr"},
    {firstName : "Maxime", lastName : "Le Feuvre", mail : "maximelefeuvre@outlook.fr"},
    {firstName : "Mewen", lastName : "Le Pogam", mail : "mewenlepogam@outlook.fr"},
    {firstName : "Aziliz", lastName : "Abollivier", mail : "azilizabollivier@outlook.fr"},
    {firstName : "Thibault", lastName : "Herledan", mail : "thibaultherledan@outlook.fr"},
    {firstName : "Sophie", lastName : "Puybareau", mail : "sophiepuybareau@outlook.fr"},
    {firstName : "Kévin", lastName : "Le Manach", mail : "kevinlemanach@outlook.fr"}
  ];
  page = 0;
  maximumPages = 3;

  constructor(public navCtrl: NavController) {
    this.loadUsers();
  }

  loadUsers(infiniteScroll?) {
    if (infiniteScroll) {
      infiniteScroll.complete();
    }
  }

  loadMore(infiniteScroll) {
    this.page++;
    this.loadUsers(infiniteScroll);
 
    if (this.page === this.maximumPages) {
      infiniteScroll.enable(false);
    }
  }
}

And all what I get is this :

Any idea about how to solve this?
Thanks by advance

Posts: 1

Participants: 1

Read full topic


Vibration no provider in app.module.ts

$
0
0

@basti wrote:

I installed the vibration plugin and its dependencies.
Importing in the app.module.ts is also no problem

import { Vibration } from '@ionic-native/vibration';

But when I add
Vibration
to the list of providers, there are errors:

"VibrationOriginal" is not of the type "provider"
"provide" is missing in "VibrationOriginal"

Do someone know what I’m doing wrong? Thanks!

Posts: 1

Participants: 1

Read full topic

Ionic Documentation - Reorder

$
0
0

@jodersus wrote:

The documentation for the api of ion-reorder and ion-reorder-group is incomplete (!)
Can you please update it?

Many thanks,
Alex

Posts: 2

Participants: 2

Read full topic

How do I filter ocr result so that only certain results will be displayed

$
0
0

@baattexx wrote:

I want to use regex to filter my ocr result and only those that match my regex will be displayed. Can you please provide code samples because i did not find any sample that match my desired result.

Posts: 1

Participants: 1

Read full topic

Using fingerprint for multiple users

$
0
0

@henry212 wrote:

So I basically have an app which will be used by multiple users, now i need to store the fingerprint data for everyone who registers to be able to remember them the next time they login.

Do you know of any ways to do this, and if there are any features available in the ionic framework plugins.

Thanks in advance, this will go a long way.

Posts: 1

Participants: 1

Read full topic

How can save my locations using Background Geolocation to print map with points

$
0
0

@Jalvarez05 wrote:

Hello,everyone .
Hello,everyone .

I want to tracking the user app even Background mode.

I’ve followed this tutorial :

And I’ve modified some things like :

1.Create model to save locations
2. I’ve add the location to my array inside : this.zone.run , like this :

this.zone.run(() => {
this.lat = location.latitude;
this.lng = location.longitude;
console.log(“ZONE 1”);
let newLocation: location = {
lat: location.latitude,
lng: location.longitude
};
this.locations.push(newLocation);
});

  1. When user click on Stop Tracking, i want to print with alert all locations tracked.

I am not sure if I should added the locations inside this.zone.run , i’ve tried put that outside(before of this.zone.run but it fails too)

Any idea about that ?

My code project is :

I would like to integrate thr project using this tutorial too:

https://devdactic.com/ionic-location-tracker-map-track/

Posts: 1

Participants: 1

Read full topic

Geolocation getCurrentPosition issue!

$
0
0

@iAhmad89 wrote:

Hello,

I’m trying to add geolocation to my app (ionic 3) to get my current position, but it gives me this error

import { Geolocation } from '@ionic-native/gelocation';

Expected 1-3 arguments, but got 0.

However, i get another error when using this import:

import { Geolocation } from '@ionic-native/gelocation/ngx';

Object(…) is not a function
at Geolocation.Array.concat.Geolocation.getCurrentPosition

my code:

import { Component } from '@angular/core';
import { Geolocation } from '@ionic-native/geolocation/ngx';
//import { Geolocation } from '@ionic-native/geolocation';
...

constructor( .... , private gps: Geolocation, .....) {}

getLocation(){
    this.gps.getCurrentPosition().then(res => {
        console.log(res);
    });
  }
....

Thanks in advance!

Posts: 1

Participants: 1

Read full topic

App uses old deployed code and won't update to new one

$
0
0

@kkarl wrote:

For example, I deployed code with maximum version of 0.9.61. App itself has cordova-plugin-ionic with update method background.

Now I uploaded new version 0.9.62 to google play, but users who download it, won’t get 0.9.62 updates, but still have code deployed from 0.9.61.

Output from checkForUpdate:
25

Output from getAvailableVersions:

Output from getConfiguration:
48

From this I see that version id with 0.9.62 is same as 0.9.61 and this might be the case.
Also when starting app, I get log:

Current: versionCode: 9620 versionName: 0.9.62
update: versionCode: 9610 versionName: 0.9.61
Already running version 3c278841-a862-4dd0-9188-9dd7acf76166

Did I get something wrong? Or why 0.9.61 persists after 0.9.62 “manual” update?

Posts: 2

Participants: 2

Read full topic


An error occurred while running subprocess cordova. cordova run android --proxy --livereload-port 35729 --dev-logger-port 53703 exited with exit code 1

$
0
0

@lunneyd wrote:

It was working earlier today but ionic cordova run android will not work on any project. I am getting the same error. ionic serve works perfectly.

ionic-app-scripts build --target cordova --platform android
[16:11:36] ionic-app-scripts 3.1.4
[16:11:36] build dev started …
[16:11:36] clean started …
[16:11:36] clean finished in 13 ms
[16:11:36] copy started …
[16:11:36] deeplinks started …
[16:11:37] deeplinks finished in 125 ms
[16:11:37] transpile started …
[16:11:39] transpile finished in 2.45 s
[16:11:39] preprocess started …
[16:11:39] preprocess finished in less than 1 ms
[16:11:39] webpack started …
[16:11:39] copy finished in 2.88 s
[16:11:44] webpack finished in 5.40 s
[16:11:44] sass started …
[16:11:46] sass finished in 1.13 s
[16:11:46] postprocess started …
[16:11:46] postprocess finished in 9 ms
[16:11:46] lint started …
[16:11:46] build dev finished in 9.36 s
[16:11:48] lint finished in 2.12 s
cordova run android --proxy --livereload-port 35729 --dev-logger-port 53703
Android Studio project detected
The platform “35729” does not appear to have been added to this project.
[ERROR] An error occurred while running subprocess cordova.

When I ran Ionic cordova run android --livereload -cs I got the following.

TypeError: arg.includes is not a function**

at args.length.args.map.arg

(/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-framework/utils/shell.js:130:44)

at Array.map (<anonymous>)

at ShellCommand.bashify

(/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-framework/utils/shell.js:130:29)

at Shell.<anonymous> (/usr/local/lib/node_modules/ionic/lib/shell.js:27:33)

at Generator.next (<anonymous>)

at fulfilled

(/usr/local/lib/node_modules/ionic/node_modules/tslib/tslib.js:104:62)

at <anonymous>**

Posts: 1

Participants: 1

Read full topic

The platform "35729" does not appear to have been added to this project

$
0
0

@AdamGelineau wrote:

Hi guys,

I’ve just updated my Ionic CLI by doing

npm install -g ionic

And now I can’t run my app anymore by doing

ionic cordova run android --verbose

It returns this error

No scripts found for hook "before_run".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform android
Android Studio project detected
The platform "35729" does not appear to have been added to this project.
Error: The platform "35729" does not appear to have been added to this project.
    at Object.getPlatformApi (C:\Users\Adam Gelineau\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\platforms\platforms.js:46:15)
    at C:\Users\Adam Gelineau\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\prepare.js:53:38
    at Array.map (<anonymous>)
    at C:\Users\Adam Gelineau\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\prepare.js:51:47
    at _fulfilled (C:\Users\Adam Gelineau\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:854:54)
    at C:\Users\Adam Gelineau\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:883:30
    at Promise.promise.promiseDispatch (C:\Users\Adam Gelineau\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:13)
    at C:\Users\Adam Gelineau\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:624:44
    at runSingle (C:\Users\Adam Gelineau\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:137:13)
    at flush (C:\Users\Adam Gelineau\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:125:13)

I don’t know what to do here, I don’t know what is “35729” platform…

Thanks :slight_smile:

Posts: 1

Participants: 1

Read full topic

Help me ionic v4 page

$
0
0

@muratcankuruoffical wrote:

example project:
I looked at hım…

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

interface Todo {
  id: string,
  title: string,
  description: string
}

@Injectable()
export class TodoService {

  public todos: Todo[] = [];

  constructor() { 

    // Set some test todos
    this.todos = [
      { id: 'todo-one', title: 'Todo One', description: 'Do Stuff' },
      { id: 'todo-two', title: 'Todo Two', description: 'Do Stuff' },
      { id: 'todo-three', title: 'Todo Three', description: 'Do Stuff' },
      { id: 'todo-four', title: 'Todo Four', description: 'Do Stuff' },
      { id: 'todo-five', title: 'Todo Five', description: 'Do Stuff' },
      { id: 'todo-six', title: 'Todo Six', description: 'Do Stuff' },
      { id: 'todo-seven', title: 'Todo Seven', description: 'Do Stuff' }
    ];

  }

  getTodo(id): Todo {
    return this.todos.find(todo => todo.id === id);
  }

}

I’m project:
I can’t get data
btc.service.ts

import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable, throwError } from 'rxjs';
import { ActivatedRoute } from '@angular/router';
import { NavController, ModalController } from '@ionic/angular';
import { Router } from '@angular/router';

interface Item {
//I've tried...
	/*
	id: string,
	name: string,
	symbol: string,
	rank: number,
	price_usd: number,
    price_btc: number,
    24h_volume_usd: number,
    market_cap_usd: number,
    available_supply: number,
    total_supply: number,
    max_supply: number,
    percent_change_1h: number,
    percent_change_24h: number,
    percent_change_7d: number,
    last_updated: number
	*/
}
@Injectable({
  providedIn: 'root'
})
export class BtcService {
	  public items: Item[] = []; //items:any;

	constructor (public http: HttpClient) {
				let data:Observable<any>;
		data = this.http.get('https://api.coinmarketcap.com/v1/ticker/');
		data.subscribe(result => {
			this.items = result;
		});
	   /*this.items = this.http.get('https://api.coinmarketcap.com/v1/ticker/');
	   this.items.subscribe(data => { 
	   console.log('my data:', data);
	   }) */
	}
  getItem(id): Item {
    return this.items.find(item => item.id === id);
  }


}

Posts: 1

Participants: 1

Read full topic

Plugins native error: Object(...) is not a function

$
0
0

@JorchDeveloper wrote:

Hola buenas, he estado liado con un error que me han dado ciertos plugin. En concretos estos:
import { FilePath } from ‘@ionic-native/file-path/ngx’;
import { FileChooser } from ‘@ionic-native/file-chooser/ngx’;
import { IOSFilePicker } from ‘@ionic-native/file-picker/ngx’;
import { FileOpener } from ‘@ionic-native/file-opener/ngx’;
import { Geolocation } from ‘@ionic-native/geolocation/ngx’;
import { LaunchNavigator } from ‘@ionic-native/launch-navigator/ngx’;
import { Base64 } from ‘@ionic-native/base64/ngx’;

les añadí el ngx ya que me estaban dando errores de compilacion (aquí esta el post que me soluciono el problema https://stackoverflow.com/questions/54361396/ionic-3-error-install-native-plugin-after-ionic-4-release ) en mi module.app. Una vez añadí la terminación la aplicacion me compilo pero al usar cualquiera de los plugins me da el error Object(…) is not a function.

Tengo las versiones de plugins y ionic actualizadas.

Muchas gracias.

Posts: 1

Participants: 1

Read full topic

Validate email field with Firebase data!

$
0
0

@devpassion96 wrote:

Hi, i created a form field with ionic but wants the username field to be unique. Therefore, it has to check whether the username input is in the firebase realtime database or not.
If it is in the database it should not allow you to register. But it will instead prompt you to enter a different username.
Am trying to do it using the following, but its not working:
this is the ts. file

export class RegisterPage {

  registerForm: FormGroup;

  constructor(private afs: AngularFirestore, private fb: FormBuilder) { }

  ngOnInit() {
    this.loginForm = this.fb.group({
      email:  ['', [
        Validators.required,
        Validators.email,
        
      ]],
      username:  ['',
        Validators.required,
        CustomValidator.username(this.afs)
      ],
    });

  }

  // Use getters for cleaner HTML code

  get email() {
    return this.loginForm.get('email')
  }

  get name() {
    return this.loginForm.get('name')
  }
}

export class CustomValidator {
  static username(afs: AngularFirestore) {
    return (control: AbstractControl) => {

      // return an observable here....
      const username = control.value.toLowerCase();

return afs.collection('person-list', ref => ref.where('username', '==', username) )

  .valueChanges().pipe(
    debounceTime(500),
    take(1),
    map(arr => arr.length ? {nameAvailable: false } : null ),
  )

    }
  }
}

.html file

<form [formGroup]="loginForm" novalidate>

    <ion-item >
      <ion-label for="email">Email</ion-label><br>
      <ion-input type="email" formControlName="email"></ion-input>

    </ion-item>
<div class="alert alert-danger" *ngIf="email.touched && email.invalid">
  <div *ngIf="email.errors.asyncUnique" class="notification is-danger">
  {{ email.value }} email must be unique
  </div>

</div>

<ion-item >
  <ion-label for="username">Name</ion-label><br>
  <ion-input type="username" formControlName="username"></ion-input>

</ion-item>

  <div *ngIf="username .invalid && username.dirty" class="notification is-danger">
  {{ username.value }} is already taken
</div>

<div *ngIf="username .valid" class="notification is-success">
  {{ username.value }} is available
</div>

<div *ngIf="username .pending" class="notification is-info">
  Hold tight... Checking availability of {{ username.value }}
</div>
<button [disabled]="!loginForm.valid"> Button</button>
</form>

Will really appreciate your help.
Thanks you in advance.

Posts: 1

Participants: 1

Read full topic

Where did Ionicons v3 page go?

Ionic 4 not asking for Version Prompt


Error building on --prod android

$
0
0

@pettrin wrote:

App.module.ts

import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule} from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule} from 'ionic-angular';

import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { ApiProvider } from '../providers/api/api';
import {LoginPage} from "../pages/login/login";

import { UserProvider } from '../providers/user/user';
import {HttpClientModule} from "@angular/common/http";
import { EventosProvider } from '../providers/eventos/eventos';
import {RegisterUserPage} from "../pages/register-user/register-user";
import {BrMaskerModule} from "brmasker-ionic-3";
import {EventPage} from "../pages/event/event";
import {IonicStorageModule} from "@ionic/storage";
import {SearchUserPage} from "../pages/search-user/search-user";
import { CartProvider } from '../providers/cart/cart';
import { IngressoProvider } from '../providers/ingresso/ingresso';
import {CartPage} from "../pages/cart/cart";
import {EditPerfilPage} from "../pages/edit-perfil/edit-perfil";
import {CartButtonPage} from "../pages/cart-button/cart-button";
import {SucessCartPage} from "../pages/sucess-cart/sucess-cart";
import {ChamadaPage} from "../pages/chamada/chamada";
import {SucessChamadaPage} from "../pages/sucess-chamada/sucess-chamada";
import {PedidosPage} from "../pages/pedidos/pedidos";
import {PedidosDetalhesPage} from "../pages/pedidos-detalhes/pedidos-detalhes";
import {TabsPage} from "../pages/tabs/tabs";
import {EspetaculoPage} from "../pages/espetaculo/espetaculo";
import {PerfilPage} from "../pages/perfil/perfil";
import {LoginRequiredPage} from "../pages/login-required/login-required";
import {IngressosPage} from "../pages/ingressos/ingressos";
import {FavoritosPage} from "../pages/favoritos/favoritos";
import {AlterPasswordPage} from "../pages/alter-password/alter-password";
import {Camera} from "@ionic-native/camera";
import { CameraProvider } from '../providers/camera/camera';
import {FilterEventsPage} from "../pages/filter-events/filter-events";
import {SearchEventsPage} from "../pages/search-events/search-events";
import {SplashScreen} from "@ionic-native/splash-screen";
import {StatusBar} from "@ionic-native/status-bar";
import {IndicarAplicativoPage} from "../pages/indicar-aplicativo/indicar-aplicativo";
import {ValidatorsModule} from "../validators/validators.module";
import {ErrorHandlerService} from "../providers/error-handler-service";
import {SelectSearchableModule} from "ionic-select-searchable";
import {Facebook} from "@ionic-native/facebook";
import {SocialSharing} from "@ionic-native/social-sharing";
import {Base64} from "@ionic-native/base64";
import {MercadopagoPage} from "../pages/mercadopago/mercadopago";
import {IonicSelectableModule} from "ionic-selectable";
import {AgrupadoPage} from "../pages/agrupado/agrupado";
import { NgxQRCodeModule} from "ngx-qrcode2";
import {BarcodeScanner} from "@ionic-native/barcode-scanner";
// import {ScrollHideDirective} from "../services/scroll-hide";
import {SplashPage} from "../pages/splash/splash";


@NgModule({
  declarations: [
    // MyApp,
    // HomePage,
      // ScrollHideDirective
      // LoginPage,
    // RegisterUserPage,
    // EventPage,
    // SearchUserPage,
    // CartPage,
    // EditPerfilPage,
    // CartButtonPage,
    // SucessCartPage,
    // ChamadaPage,
    // SucessChamadaPage,
    // PedidosPage,
    // PedidosDetalhesPage,
    // TabsPage,
    // AgrupadoPage,
    // EspetaculoPage,
    // PerfilPage,
    // LoginRequiredPage,
    // IngressosPage,
    // FavoritosPage,
    // AlterPasswordPage,
    // SearchEventsPage,
    // FilterEventsPage,
    // IndicarAplicativoPage,
    // MercadopagoPage,
  ],
  imports: [
    NgxQRCodeModule,
    FormsModule,
    BrowserModule,
    ValidatorsModule,
    SelectSearchableModule,
    IonicSelectableModule,
      IonicModule.forRoot(MyApp,
        {
          scrollAssist:false,
          autoFocusAssists:false
        }),
    HttpClientModule,
      BrMaskerModule,
      IonicStorageModule.forRoot({
          name: 'Ecomerce',
          storeName: 'usuario',
          driverOrder: ['indexeddb']
      })
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    LoginPage,
    RegisterUserPage,
    EventPage,
    SearchUserPage,
    CartPage,
    EditPerfilPage,
    CartButtonPage,
    SucessCartPage,
    ChamadaPage,
    SucessChamadaPage,
    PedidosPage,
    PedidosDetalhesPage,
    TabsPage,
    AgrupadoPage,
    EspetaculoPage,
    PerfilPage,
    LoginRequiredPage,
    IngressosPage,
    FavoritosPage,
    AlterPasswordPage,
    SearchEventsPage,
    FilterEventsPage,
    IndicarAplicativoPage,
    MercadopagoPage,

  ],
  providers: [
    Camera,
    BarcodeScanner,
    StatusBar,
    SplashScreen,
    {provide: ErrorHandlerService, useClass: IonicErrorHandler},
    ApiProvider,
    UserProvider,
    EventosProvider,
    CartProvider,
    IngressoProvider,
    CameraProvider,
    Facebook,
    SocialSharing,
    Base64,
  ]
})
export class AppModule {}

When i was building in prod, i receive this error.47

Posts: 1

Participants: 1

Read full topic

RTL In THIS index.html file with {{variable}}

$
0
0

@CreativeArtDesign wrote:

The thing is i change languages and have RTL and LTR in my global SCSS. In my index.html i have the direction for different languages.

In my case i have RTL and LTR … Arabic and English.

When i start my application onInit it check what language i have and change RTL or LTR based language. But it wont take my service variable in index.html. Any ide?

EXAMPEL

 :root[dir="rtl"] {
     .my-header {
         font-size: 20px;
       }
 }

In my root HTML i would like to change dir=“rtl” with a variable from my service variable does not take it. on load.
If i hard code the RTL it works with my SCSS IF statement but not with a service variable…any ide how i can make it happend?

<!DOCTYPE html>
<html lang="en" dir="rtl">

<head>
  <meta charset="utf-8" />
  <title>Böntider Sverige</title>

  <base href="/" />

  <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="format-detection" content="telephone=no" />
  <meta name="msapplication-tap-highlight" content="no" />

  <link rel="icon" type="image/png" href="assets/icon/favicon.png" />

  <!-- add to homescreen for ios -->
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
</head>

<body>
  <app-root></app-root>
</body>

</html>

Would like to replace this tag here. to this below… but it does not read my service variable…

<html lang="en" dir="{{this.service.langDirection_gv}}">

But it does not read the value.

How do i read this value before …

Do i need to import my service in main.ts?

Posts: 1

Participants: 1

Read full topic

Nearme 5 - Premium Ionic 4 Starter / Template / Theme

Ionic docs incomplete after end of beta

$
0
0

@Pol52 wrote:

I mean, I get it that ionic 4 beta is over, but why would you remove the beta docs which were somewhat decent or at least half complete and just leave the standard docs which are empty and not even finished for the most part?
Is there any detailed source for the docs?

Posts: 1

Participants: 1

Read full topic

Error when "ionic build --prod" for pwa application

$
0
0

@claudiocfls wrote:

Hi, I always used the “ionic serve” command to test my pwa and it works fine. Now it is finished and I want some performance improvement, so I decided to use the build command.

I don’t use lazy loading and all pages are imported in app.module.ts (declarations and entryComponents).

But, the build --prod command raise the folowing error:

typescript error
Type DetailsPage in /home/claudio/workspace/pesqSaude/src/pages/details/details.ts is part of the
declarations of 2 modules: AppModule in /home/claudio/workspace/pesqSaude/src/app/app.module.ts and
DetailsPageModule in /home/claudio/workspace/pesqSaude/src/pages/details/details.module.ts! Please consider
moving DetailsPage in /home/claudio/workspace/pesqSaude/src/pages/details/details.ts to a higher module that
imports AppModule in /home/claudio/workspace/pesqSaude/src/app/app.module.ts and DetailsPageModule in
/home/claudio/workspace/pesqSaude/src/pages/details/details.module.ts. You can also create a new NgModule
that exports and includes DetailsPage in /home/claudio/workspace/pesqSaude/src/pages/details/details.ts then
import that NgModule in AppModule in /home/claudio/workspace/pesqSaude/src/app/app.module.ts and
DetailsPageModule in /home/claudio/workspace/pesqSaude/src/pages/details/details.module.ts.

I already saw that I have to delete pageName.module.ts files and @IonicPage() at .ts file, but doing this my app doesn’t works with “ionic serve” anymore.

What I can do to solve this problem?

Posts: 1

Participants: 1

Read full topic

Viewing all 70434 articles
Browse latest View live


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