ionic-v1

Make div fixed when you scroll to it in ionic v1

老子叫甜甜 提交于 2021-02-05 10:43:05
问题 I am trying to make a div fixed when you scroll to it but the issue is that the div I am trying to target is in ion-content and it is not allowing me to use simple jQuery or CSS solutions in order to make this feature possible. The scroll portion of ion-content is disrupting it from working according to answers I have read... I was curious of any solutions pertaining to this issue. I am using an old version of ionic and have not come across and feasible solutions. Everything that I have tried

Ionic md-tabs squeezing tabs

末鹿安然 提交于 2019-12-24 07:29:10
问题 I have created this app with ionic and angular material design. My issue is when I use md-tabs with more than 4 tabs. It's squeezing when I switch between views and back to md-tabs... it's common on android, ios it's just usually. <md-tabs md-stretch-tabs="auto" md-align-tabs="top" md-center-tabs="yes" md-dynamic-height="" md-border-bottom="" md-selected="data.selectedIndex"> Normal With squeeze Solution md-tab-item.md-tab.md-ink-ripple { min-width: 111px; } 回答1: Have you tried setting a min

Error status codes are not being caught

ぐ巨炮叔叔 提交于 2019-12-23 13:06:56
问题 I am trying to catch angular resource's HTTP error status code (!=200). My Service, where I have resources defined: (apiService.js) .factory('ApiService', function($resource, $http, localStorageService, CONFIG) { var base_api_url = api_url = CONFIG.api_url, api_version_prefix = CONFIG.api_version_prefix; return { userDevices: $resource(api_url+'/requestRegistration/userDevices/:action', {}, { registerDevice: { method: 'POST', params: { action: '' } }, verify: { method: 'POST', params: {

Show only one icon in one common headerbar in angularjs and ionic-v1

二次信任 提交于 2019-12-14 03:05:39
问题 I have an application using Angularjs and Ionic-v1. I have a common headerbar where i have 2 icons(one for Tab1 and one for Tab2). And in the bottom of the screen i have 2 tabs(Tab1 and Tab2). When i am in Tab1,i want to show icon for Tab1 only.And when I am in Tab2 i want to show icon for Tab2 only. <div ng-click="menu.changeLayout()"> <a class="icon_one" ng-if="!grid"></a> <a class="icon_change" ng-if="grid"></a> <a class="icon_one_test" ng-if="!grid1"></a> <a class="icon_change_test" ng-if

Status Bar on iOS Background Color

给你一囗甜甜゛ 提交于 2019-12-03 09:32:24
问题 I’m having a hard time setting the iOS status bar background color to transparent. I’m using the latest version of cordova statusbar and ionic, and leaving everything to their default setting, however i’m getting a white background color for some reason. How can i set the background color to transplant, i though this is the default value anyhow. 回答1: Okay so after referring to: https://issues.apache.org/jira/browse/CB-12886 and https://issues.apache.org/jira/browse/CB-12890 The issue occurs

Status Bar on iOS Background Color

此生再无相见时 提交于 2019-12-02 23:57:46
I’m having a hard time setting the iOS status bar background color to transparent. I’m using the latest version of cordova statusbar and ionic, and leaving everything to their default setting, however i’m getting a white background color for some reason. How can i set the background color to transplant, i though this is the default value anyhow. Okay so after referring to: https://issues.apache.org/jira/browse/CB-12886 and https://issues.apache.org/jira/browse/CB-12890 The issue occurs in iOS 11, and cordova-ios-4.5.0 and is simply solved by adding the cover value to viewport-fit as follows in

How to set Pre selected data in dynamic select option in IONIC

≯℡__Kan透↙ 提交于 2019-12-02 15:03:25
问题 I face a strange problem where I need to show Pre selected data(which also come from server) in select option. The problem that I need to show select option based on key and value option. <div class="list list-inset"> <span class="input-label">Permisstion</span> <select ng-model="permisstion" > <option ng-repeat="(key, value) in Roles" id="{{key}}" value="{{value}}">{{value}}</option> </select> </div> JSON Data "Roles": { "21": "Admin", "22": "Main Manager", "23": "Branch Manager", "26":

How to set Pre selected data in dynamic select option in IONIC

拟墨画扇 提交于 2019-12-02 08:27:55
I face a strange problem where I need to show Pre selected data(which also come from server) in select option. The problem that I need to show select option based on key and value option. <div class="list list-inset"> <span class="input-label">Permisstion</span> <select ng-model="permisstion" > <option ng-repeat="(key, value) in Roles" id="{{key}}" value="{{value}}">{{value}}</option> </select> </div> JSON Data "Roles": { "21": "Admin", "22": "Main Manager", "23": "Branch Manager", "26": "Side Manager" } I don't no how to show Pre selected data in select option and I try a lot but till now I