ionic-framework

SVG and ng-bind-html is not working on IOS using Ionic Framework

风流意气都作罢 提交于 2020-01-15 09:02:41
问题 I am struggling to get my little ionic app to show an SVG file in IOS using the IonicFramework. It works in the browser and also on Android 5.0 but when I try it out in IOS my flag does not appear. If i add the flag hardcoded into the html the flag appears as it should... Hmm what am i doing wrong?? The example is based on a new Ionic project using the blank template... JS snippet: .controller('myCtrl', function($scope) { var flag='<polygon points="0 0,0 60,120 40,120 20" fill="white" />

How to put a checkbox input inside an alert prompt in Ionic2?

烂漫一生 提交于 2020-01-15 08:41:11
问题 Using Ionic2 and Angular2, I want to show an alert box, inside which a text along with checkbox - to ask for user if he/she agree to the statement. 回答1: //Prompt an alert, to ask user to verify there email address. let alert = Alert.create({ subTitle: 'Email not verified!', message: 'Please check your email for verification link.', inputs: [ { name: 'getLink', label: 'Get verification link again ?', type: "checkbox", value: "true", checked: false } ], buttons: [ { text: 'Ok', handler: data =>

collection-repeat with angular component, what is happening?

我的梦境 提交于 2020-01-15 02:55:49
问题 I'm trying to use collection-repeat to display an angular component for each object in an array. I pass each object as parameter to an angular component but when I try to access the object in my component's controller I get undefined . <ion-content> <ion-list> <ion-item collection-repeat="user in users" item-width="100%" item-height="90px"> {{user}} //renders my user data correctly instantly <usser user="user"></user> </ion-item> </ion-list> </ion-content> My component angular .module('app')

Getting null as the token on getToken() in cordova-plugin-fcm

时光怂恿深爱的人放手 提交于 2020-01-15 02:55:28
问题 I want to implement push notification using ionic 3 and firebase. I am using cordova-plugin-fcm but I am getting the token as null on getToken() . I have already set up the project on firebase and downloaded the google services. When I used this plugin a year back everything was working perfectly. Now when I am using it on my new project I am getting null as the token. Is the getToken() deprecated? I have installed the fcm plugin as well as @ionic-native/fcm . According to the new

Why adding custom SASS variables does not work in Ionic?

牧云@^-^@ 提交于 2020-01-14 19:11:41
问题 I setup a new ionic project using the -s option to enable SASS. Here is a part of my /myproject/scss.ionic.app.scss: ... $positive: #2a8000 !default; $button-font-size: 30px !default; // Include all of Ionic @import "www/lib/ionic/scss/ionic"; When saving this scss file, I can see in the shell that sass is launched and css is re-built: [00:18:18] Starting 'sass'... CSS changed: www/css/ionic.app.css [00:18:18] Finished 'sass' after 330 ms CSS changed: www/css/ionic.app.min.css However, the

Why adding custom SASS variables does not work in Ionic?

十年热恋 提交于 2020-01-14 19:10:55
问题 I setup a new ionic project using the -s option to enable SASS. Here is a part of my /myproject/scss.ionic.app.scss: ... $positive: #2a8000 !default; $button-font-size: 30px !default; // Include all of Ionic @import "www/lib/ionic/scss/ionic"; When saving this scss file, I can see in the shell that sass is launched and css is re-built: [00:18:18] Starting 'sass'... CSS changed: www/css/ionic.app.css [00:18:18] Finished 'sass' after 330 ms CSS changed: www/css/ionic.app.min.css However, the

Why adding custom SASS variables does not work in Ionic?

烂漫一生 提交于 2020-01-14 19:09:32
问题 I setup a new ionic project using the -s option to enable SASS. Here is a part of my /myproject/scss.ionic.app.scss: ... $positive: #2a8000 !default; $button-font-size: 30px !default; // Include all of Ionic @import "www/lib/ionic/scss/ionic"; When saving this scss file, I can see in the shell that sass is launched and css is re-built: [00:18:18] Starting 'sass'... CSS changed: www/css/ionic.app.css [00:18:18] Finished 'sass' after 330 ms CSS changed: www/css/ionic.app.min.css However, the

Why adding custom SASS variables does not work in Ionic?

梦想与她 提交于 2020-01-14 19:09:31
问题 I setup a new ionic project using the -s option to enable SASS. Here is a part of my /myproject/scss.ionic.app.scss: ... $positive: #2a8000 !default; $button-font-size: 30px !default; // Include all of Ionic @import "www/lib/ionic/scss/ionic"; When saving this scss file, I can see in the shell that sass is launched and css is re-built: [00:18:18] Starting 'sass'... CSS changed: www/css/ionic.app.css [00:18:18] Finished 'sass' after 330 ms CSS changed: www/css/ionic.app.min.css However, the

Ionic - app hangs on splash screen

孤街浪徒 提交于 2020-01-14 14:29:48
问题 My ionic app is hanging on the splash screen - it was working fine and then I added some code, and went to test, and it's getting stuck. It gets to this point: ------ Debug phase ------ Starting debug of 2e5ac6066864be48322a757c4d0ccdfde52cf356 (N51AP, iPhone 5s (GSM), iphoneos, arm64) a.k.a. 'Eamon White’s iPhone' connected through USB... [ 0%] Looking up developer disk image [ 90%] Mounting developer disk image [ 95%] Developer disk image already mounted [100%] Connecting to remote debug

How does the app know a component is a page

好久不见. 提交于 2020-01-14 12:03:43
问题 Now that the @Page decorator had been deprecated, how does the app differentiate between a component that should be used as part of a page and a component that represents a page you can navigate to? The only difference I see that page components have no selector property defined in the @Component decorator. 回答1: A component is considered to be a page if it's pushed to the navigation controller's stack. A selector property is optional in an Angular2 component. You only need it when you want to