ionic3

How I get & validate the username and password in SQL Management using API?

*爱你&永不变心* 提交于 2019-12-11 17:32:49
问题 I created my login page and i want to validate the username and password. Then i need to get the user details using API from the database. please send me a coding using ionic-3 and angular-2. I already tried in my SQL. But i want it in SQL management. In the below coding i send the parameters using post method and it will get at back end and validate with already registered username and password. Username: any; Password: any; data:string; constructor( ){} //declaration of object// var headers

Angular Material Design with ionic 3 : theme colour not works

断了今生、忘了曾经 提交于 2019-12-11 17:31:42
问题 I just follow this to integrate Angular Material into the Ionic 3 app. Everything is fine. I can include all the material element in ionic app now but the theme colour is not working. Below is my package.json configuration: "@angular/animations": "5.2.4", "@angular/cdk": "5.2.4", . . "@angular/core": "5.2.11", "@angular/forms": "5.2.11", "@angular/http": "5.2.11", "@angular/material": "5.2.4", . . "hammerjs": "2.0.8", "ionic-angular": "3.9.2", "ionicons": "3.0.0", Any solution? 回答1: Add the

Ionic Giving Typescript error while Building

泄露秘密 提交于 2019-12-11 17:28:14
问题 Hello i am trying to build android application for production using command ionic cordova build android --prod The problem is that after running this code it is giving me this following typescript error. typescript error Type ContactPage in C:/Users/Akshay S. Shrivastav/Desktop/vidyotan_2k18/src/pages/contact/contact.ts is part of the declarations of 2 modules: AppModule in C:/Users/Akshay S. Shrivastav/Desktop/vidyotan_2k18/src/app/app.module.ts and ContactPageModule in C:/Users/Akshay S.

How can we navigating through pages so we can create new object of a page from same page

廉价感情. 提交于 2019-12-11 17:23:42
问题 How can we create stack like structure for navigating through pages so we can create new object of a page from same page , here I want to go to SuperPage from SuperPage but angular routing does not supporting it , in IONIC3 we can achieve it very easily by push method of navCtrl but I want the navigation on the same page(SuperPage) in ionic 4 so how can we achieve this ?? import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { NavController } from

ion-item-options not displaying

。_饼干妹妹 提交于 2019-12-11 17:21:49
问题 I am developing an app using Ionic 3. I have an ion-item-sliding wrapped within an ion-list. I need to show the options when the list item is swiped. I got the color working but the text is not displaying at all. I don't have any css applied to the button at all. <ion-list text-wrap> <ion-list-header> ... </ion-list-header> <ion-item *ngIf="classes?.length === 0">No Data</ion-item> <ion-item-group *ngFor="let classObj of classes"> <ion-item-divider>...</ion-item-divider> <ion-item-sliding

Unexpected closing tag ion-list in ionic 3

為{幸葍}努か 提交于 2019-12-11 17:19:16
问题 I checked many times and didn't see any problem. It throws an error for a closing tag of ion-list inside HTML. Component <div> <button (click)="toggleFunc();" class="accordion">Section Title</button> <div class="panel" [ngClass]="opened ? 'active' : ''"> <form [formGroup]="form"> <ion-list style="margin-top: 15% !important" class="scroll"> <ion-item> <ion-input class="input-field" formControlName="firstName" name="firstName" type="text" placeholder="First Name"></ion-input> </ion-item> ... ..

Can't bind to 'options' since it isn't a known property of 'chart'

女生的网名这么多〃 提交于 2019-12-11 16:59:12
问题 I have created a chart module using Angular2-highcharts but when I try to run the application I am getting the followoing error. ERROR Error: Uncaught (in promise): Error: Template parse errors: Can't bind to 'options' since it isn't a known property of 'chart'. (" <!-- <p text-center>Kye Info Page under construction</p> --> <chart [ERROR ->][options]="chartOptions" type="chart"></chart> </ion-content> "): ng:///KeyinfoPageModule/KeyinfoPage.html@27:9 'chart' is not a known element: 1. If

Publishing image file to events not working in Ionic 3

梦想的初衷 提交于 2019-12-11 16:55:41
问题 I am working in Ionic App and I have made the update profile image functionality in my app and it is working fine but when I try to update the user profile image it is not sending the image proper path. This is my updateimage.ts : onImageSelected(event) { this.selectedImage = event.target.files[0]; let reader = new FileReader(); reader.onload = (e: any) => { this.imageUrl = e.target.result; this.converted_image = "data:image/jpeg;base64,"+this.imageUrl; }; reader.readAsDataURL(this

Ionic 3 TypeError: this.http.post is not a function

杀马特。学长 韩版系。学妹 提交于 2019-12-11 16:42:25
问题 Hi I'm new to ionic 3 & angular 4 and I'M trying to make a login page that post email and password to the api. But i get this error "this.http.post is not a function". I've been looking but I have not managed to solve the problem. I have read this post With ionic 2 but I think it is not the same problem. This is my app.module.ts import { BrowserModule } from '@angular/platform-browser'; import { ErrorHandler, NgModule } from '@angular/core'; import { IonicApp, IonicErrorHandler, IonicModule }

What's the difference between AngularFireDatabaseModule and AngularFireDatabase in Ionic?

◇◆丶佛笑我妖孽 提交于 2019-12-11 16:18:57
问题 According to Angularfire2 Docs, it says that; AngularFireDatabase allows you to work with the Realtime Database, Firebase's original database. It's an efficient, low-latency solution for mobile apps that require synced states across clients in realtime. However, There is AngularFireDatabaseModule , which I have no idea what is it. Therefore, I wanted to know what are these two in more detail (provide a more detailed link if available) and when to use AngularFireDatabase and