ionic-framework

ionic3 - Didn't set nav root: invalid views to insert

耗尽温柔 提交于 2019-12-25 09:48:43
问题 When I click a button this warning coming out which I running it in my web browser. (ionic serve -l) I have <ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav> in my app.html file, is it problem? UPDATE: button image (button in slide menu - feedback button) app.html <ion-list> <ion-list-header>导航栏</ion-list-header> <button menuClose ion-item *ngFor="let p of loggedInPages" (click)="openPage(p)"> <ion-icon item-start [name]="p.icon" [color]="isActive(p)"></ion-icon> {{p

Error while do ` ionic cordova build android` fro ionic 3

限于喜欢 提交于 2019-12-25 09:43:26
问题 I am getting this error when i do build for android dont know what to do. I tried remove platform and add it again. But still getting same error. Should i need to remove my android sdk and install it again in my mac ? my error : ✖ Running command - failed! [ERROR] Cordova encountered an error. You may get more insight by running the Cordova command above directly. [ERROR] An error occurred while running cordova build android (exit code 1): ANDROID_HOME=/Users/apple/Library/Android/sdk JAVA

Get selected ngModel value in Angular / Ionic 2?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 09:34:55
问题 How can I get the selected option in constructor / function, using Angular / Ionic 2? <ion-item> <ion-label>Quantity</ion-label> <ion-select [(ngModel)]="qty"> <ion-option value="1" selected="true">1</ion-option> <ion-option value="2">2</ion-option> <ion-option value="3">3</ion-option> </ion-select> </ion-item> <button ion-button full (click)="addToCart()">Buy Now</button> I've tried this: export class ProductPage { qty: any; constructor(public navCtrl: NavController) { } addToCart() {

“v.context.$implicit.categories[0] is undefined” error in Ionic 3

不羁的心 提交于 2019-12-25 09:28:23
问题 I am trying to access the category slug for a product in ionic using the WordPress rest API. This seems to work fine on one page as <h3 class="product-name uppercase">{{productdetail?.categories[0].slug}}</h3> however this does not seems to work when i try implementing the same using for loop in angular on another page <div class="width50" *ngFor="let object of dataList"> <img src="{{object.images[0].src}}" width="150" (click)="navigateToPage(object.id)" /> <h3 class="product-name uppercase"

angular $stateProvider not routing as expected

不羁的心 提交于 2019-12-25 09:17:11
问题 In my main index.html file I have the following simple markup... <body ng-app="starter" ng-controller="AppCtrl"> <div ui-view></div> </body> In my app.js I am using $stateProvider to create routes so I can display certain pages... app.config(function($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise('/app'); $stateProvider .state('app', { url: '/app', templateUrl: 'templates/menu.html', controller: 'AppCtrl' }) .state('app.accounts', { url: '/accounts', templateUrl:

Store image to Firebase storage from cordova camera plugins on Ionic

拜拜、爱过 提交于 2019-12-25 09:11:31
问题 I've red some topics on the subject (e.g: Uploading image to Firebase Storage from Cordova app) but didn't find my answer... I'm working on a IONIC project with the implementation of the ngCordova camera plugin to take picture and get pic from the librairy. So I got the result as a image URI and I want to upload it in Firebase storage (as file or Blob). Here is my code : $scope.fromCamera = function() { $ionicPlatform.ready(function() { var options = { quality: 75, destinationType: Camera

Ionic CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory while starting new project

我是研究僧i 提交于 2019-12-25 09:08:52
问题 I am new to Ionic I am getting below error when I am creating any new project. Could any one help me to fix this issue? ==== JS stack trace ========================================= Security context: 0x1240acccf781 <JS Object> 1: build [/usr/local/lib/node_modules/ionic/node_modules/chalk/index.js:118] [pc=0x185922bbdfc] (this=0x1883445b3691 <JS Function Chalk.chalk.template (SharedFunctionInfo 0x1883445b3199)>,_styles=0x36dd597b5061 <JS Array[1]>,key=0x1240acc57f81 <String[4]: bold>) 2:

Upgrading to ionic v2.0.0 issues

做~自己de王妃 提交于 2019-12-25 09:07:04
问题 My project was originally built using: ionic: 2.0.0-rc.3 ionic-app-scripts: 0.0.45 After upgrading to: ionic: 2.0.0 (which just looks like 2.0.0-rc.6 ) ionic-app-scripts: 1.0.0 I'm encountering lots of errors: I've reviewed the ionic changelog and the ionic-app-scripts one but nothing stands out. I'm assuming the errors are to do with ionic-app-scripts (as that's the directory in node_modules ) it's looking at but I'm not sure what it could be. When running ionic info : Cordova CLI: 6.5.0

can't insert data in sqlite table in ionic 1

时光总嘲笑我的痴心妄想 提交于 2019-12-25 09:06:38
问题 I am new to ionic 1. I connected my app with sqlite. I want to see the table data that are inserted. And display the inserted data in the console. But, I can't figure out Why row length is still 0. And there is no error on console. Here's my controller code snippet: .controller('salesCtrl', ['$scope', '$stateParams','$cordovaSQLite', // The following is the constructor function for this page's controller. See https://docs.angularjs.org/guide/controller // You can include any angular

ionicBootstrap not importing in app.component.ts ionic v2.1.18

巧了我就是萌 提交于 2019-12-25 09:06:12
问题 Hi Everyone, My name is Kris Chery. I am new to ionic and am using version 2.1.18. I have been following this tutorial which I think is very insightful about the powers of ionic. https://www.joshmorony.com/an-in-depth-explanation-of-providers-in-ionic-2/ I am stuck at the ionicBootstrap implementation. For now its a simple service that needs to display a message but for some reason. I can't seem to import ionic Bootstrap it is saying that ionicBoostrap wasn't exported from node modules. This