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

Google+ Login (cordova-plugin-googleplus) alternative?

$
0
0

@salvatojalva wrote:

Hi guys, there’s any alternative of cordova-plugin-googleplus plugin?

Since google will not be longer avilable the login will fail, i tried search for alternatives but with no luck, please if you have any sugestion will be great.

Thank you!

Posts: 1

Participants: 1

Read full topic


Ionic start myapp --type=ionic1 - explained

$
0
0

@raz-ride4you wrote:

When we put the flag --type=ionic1 Ionic CLI will generate a new boilerplate project based on AngularJS.
When we just create a new Ionic project, it will be based on Angular 7.

So the framework is different, but my question is whether Ionic based on AngularJS and Ionic based on Angular 7 are relying on the same Ionic 4 core, OR, Ionic 1 relies on Ionic 1 and Ionic Angular 7 relies on Ionic 4?

Are they both the same Ionic 4 core with the current best performances that Ionic framework can offer?

Posts: 2

Participants: 2

Read full topic

Localhost http get error ionic v3

$
0
0

@akil27 wrote:

Anytime I make a get request to my server I am getting the error in the pic. I am getting the data as expected from my server and there is no problem. The thing is I am not even using localhost as my server. I don’t deal with localhost at all but still it seems ionic making a null request to the localhost. Does anybody know why this is?

Posts: 1

Participants: 1

Read full topic

Alternative to cordova-device-accounts?

$
0
0

@Llarian wrote:

Hi,

good evening every one.
I am looking for an alternative for the device-accounts plugin:


which is not maintained anymore and does not work. I need a way to get the current used account.

regards

Posts: 1

Participants: 1

Read full topic

Error AndroidPermissions

$
0
0

@jeffersonpereira wrote:

vendor.js:1823 ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function
    at AndroidPermissions.checkPermission (vendor.js:60951)
    at ValidaSenhaPage.webpackJsonp.171.ValidaSenhaPage.requestAllPermissions (main.js:489)
    at new ValidaSenhaPage (main.js:481)
    at createClass (vendor.js:12865)
    at createDirectiveInstance (vendor.js:12700)
    at createViewNodes (vendor.js:14158)
    at createRootView (vendor.js:14047)
    at callWithDebugContext (vendor.js:15472)
    at Object.debugCreateRootView [as createRootView] (vendor.js:14755)
    at ComponentFactory_.create (vendor.js:11652)
    at AndroidPermissions.checkPermission (vendor.js:60951)
    at ValidaSenhaPage.webpackJsonp.171.ValidaSenhaPage.requestAllPermissions (main.js:489)
    at new ValidaSenhaPage (main.js:481)
    at createClass (vendor.js:12865)
    at createDirectiveInstance (vendor.js:12700)
    at createViewNodes (vendor.js:14158)
    at createRootView (vendor.js:14047)
    at callWithDebugContext (vendor.js:15472)
    at Object.debugCreateRootView [as createRootView] (vendor.js:14755)
    at ComponentFactory_.create (vendor.js:11652)
    at c (polyfills.js:3)
    at Object.reject (polyfills.js:3)
    at OverlayPortal.NavControllerBase._fireError (vendor.js:54530)
    at OverlayPortal.NavControllerBase._failed (vendor.js:54523)
    at vendor.js:54570
    at t.invoke (polyfills.js:3)
    at Object.onInvoke (vendor.js:5134)
    at t.invoke (polyfills.js:3)
    at r.run (polyfills.js:3)
    at polyfills.js:3

​```

Posts: 1

Participants: 1

Read full topic

Ionic 4: Display Alert Before App goes to background

Ionic 2: How to show second dropdown data based on previous dropdown selection in ionic 2 with json

$
0
0

@aseelali23 wrote:

I have a registration page in which i have 3 combobox. One contains country names, second one contains state and third one contains district.so when i select a country corresponding state should come, and when i select state corresponding district should come. I have json contaiing districts and states which in file location assets/data/region.js How can i do this? Pls help.

html file

        <ion-header>
    <ion-navbar>
        <ion-title>Location Information</ion-title>
    </ion-navbar>
   </ion-header>

    <ion-content>
    <h1 class="h1">Location</h1>

    <ion-row>
        <ion-col>
            <ion-label>Country Living in:</ion-label>
        </ion-col>
    </ion-row>
    <ion-row>
        <ion-col>
            <ion-select  placeholder="Select">
                <ion-option [value]="sCountry" >India</ion-option>
            </ion-select>
        </ion-col>
    </ion-row>
    <ion-row>
        <ion-col>
            <ion-label>Residing State:</ion-label>
        </ion-col>
        <ion-col>
            <ion-label>Residing City/District:</ion-label>
        </ion-col>
    </ion-row>
    <ion-row>
        <ion-col >
            <ion-select  [(ngModel)]="sState" placeholder="Select">
                <ion-option [value]="state"></ion-option>
            </ion-select>
        </ion-col>
        <ion-col >
            <ion-select  [(ngModel)]="sDistrict" placeholder="Select">
                <ion-option [value]="districts"></ion-option>
            </ion-select>
        </ion-col>
    </ion-row>
    <ion-row>
            <ion-col>
                <button ion-button full color="secondary" block>Save</button>
            </ion-col>
            <ion-col>
                <button (click)="nxt()" ion-button full color="primary" block>Next</button>
            </ion-col>
        </ion-row>
       </ion-content>

ts file

      import { Component } from '@angular/core'; 
      import { NavController, AlertController, LoadingController, Loading, IonicPage } from 'ionic- 
      angular';
      import { ObsAuthService } from '../../services/obs_auth.services';
      import { MatriproPage } from '../matripro/matripro';
     import { LocationService } from '../../services/loc.service';

    @Component({
    selector: 'page-matriloc',
    templateUrl: 'matriloc.html',
    
    providers: [ObsAuthService]
    
     })
    export class MatrilocPage{
   
    
    constructor(private nav: NavController, private auth: ObsAuthService,
        private alertCtrl: AlertController, private loadingCtrl: LoadingController,
        private myService: LocationService) {
        }

    selectChange(e) {
        console.log(e);
    }  
    
    public nxt(){
        this.nav.push(MatriproPage);
        
    }
    goback() {
             this.nav.pop();
     }
     }

region.js json file

{  
    "states":[  
       {  
          "state":"Andhra Pradesh",
          "districts":[  
             "Anantapur",
             "Chittoor",
             "East Godavari",
             "Guntur",
             "Krishna",
             "Kurnool",
             "Nellore",
             "Prakasam",
             "Srikakulam",
             "Visakhapatnam",
             "Vizianagaram",
             "West Godavari",
             "YSR Kadapa"
          ]
       },
       {  
          "state":"Arunachal Pradesh",
          "districts":[  
             "Tawang",
             "West Kameng",
             "East Kameng",
             "Papum Pare",
             "Kurung Kumey",
             "Kra Daadi",
             "Lower Subansiri",
             "Upper Subansiri",
             "West Siang",
             "East Siang",
             "Siang",
             "Upper Siang",
             "Lower Siang",
             "Lower Dibang Valley",
             "Dibang Valley",
             "Anjaw",
             "Lohit",
             "Namsai",
             "Changlang",
             "Tirap",
             "Longding"
          ]
       },
       {  
          "state":"Assam",
          "districts":[  
             "Baksa",
             "Barpeta",
             "Biswanath",
             "Bongaigaon",
             "Cachar",
             "Charaideo",
             "Chirang",
             "Darrang",
             "Dhemaji",
             "Dhubri",
             "Dibrugarh",
             "Goalpara",
             "Golaghat",
             "Hailakandi",
             "Hojai",
             "Jorhat",
             "Kamrup Metropolitan",
             "Kamrup",
             "Karbi Anglong",
             "Karimganj",
             "Kokrajhar",
             "Lakhimpur",
             "Majuli",
             "Morigaon",
             "Nagaon",
             "Nalbari",
             "Dima Hasao",
             "Sivasagar",
             "Sonitpur",
             "South Salmara-Mankachar",
             "Tinsukia",
             "Udalguri",
             "West Karbi Anglong"
          ]
       },
       {  
          "state":"Bihar",
          "districts":[  
             "Araria",
             "Arwal",
             "Aurangabad",
             "Banka",
             "Begusarai",
             "Bhagalpur",
             "Bhojpur",
             "Buxar",
             "Darbhanga",
             "East Champaran (Motihari)",
             "Gaya",
             "Gopalganj",
             "Jamui",
             "Jehanabad",
             "Kaimur (Bhabua)",
             "Katihar",
             "Khagaria",
             "Kishanganj",
             "Lakhisarai",
             "Madhepura",
             "Madhubani",
             "Munger (Monghyr)",
             "Muzaffarpur",
             "Nalanda",
             "Nawada",
             "Patna",
             "Purnia (Purnea)",
             "Rohtas",
             "Saharsa",
             "Samastipur",
             "Saran",
             "Sheikhpura",
             "Sheohar",
             "Sitamarhi",
             "Siwan",
             "Supaul",
             "Vaishali",
             "West Champaran"
          ]
       },
       {  
          "state":"Chandigarh (UT)",
          "districts":[  
             "Chandigarh"
          ]
       },
       {  
          "state":"Chhattisgarh",
          "districts":[  
             "Balod",
             "Baloda Bazar",
             "Balrampur",
             "Bastar",
             "Bemetara",
             "Bijapur",
             "Bilaspur",
             "Dantewada (South Bastar)",
             "Dhamtari",
             "Durg",
             "Gariyaband",
             "Janjgir-Champa",
             "Jashpur",
             "Kabirdham (Kawardha)",
             "Kanker (North Bastar)",
             "Kondagaon",
             "Korba",
             "Korea (Koriya)",
             "Mahasamund",
             "Mungeli",
             "Narayanpur",
             "Raigarh",
             "Raipur",
             "Rajnandgaon",
             "Sukma",
             "Surajpur  ",
             "Surguja"
          ]
       },
       {  
          "state":"Dadra and Nagar Haveli (UT)",
          "districts":[  
             "Dadra & Nagar Haveli"
          ]
       },
       {  
          "state":"Daman and Diu (UT)",
          "districts":[  
             "Daman",
             "Diu"
          ]
       },
       {  
          "state":"Delhi (NCT)",
          "districts":[  
             "Central Delhi",
             "East Delhi",
             "New Delhi",
             "North Delhi",
             "North East  Delhi",
             "North West  Delhi",
             "Shahdara",
             "South Delhi",
             "South East Delhi",
             "South West  Delhi",
             "West Delhi"
          ]
       },
       {  
          "state":"Goa",
          "districts":[  
             "North Goa",
             "South Goa"
          ]
       },
       {  
          "state":"Gujarat",
          "districts":[  
             "Ahmedabad",
             "Amreli",
             "Anand",
             "Aravalli",
             "Banaskantha (Palanpur)",
             "Bharuch",
             "Bhavnagar",
             "Botad",
             "Chhota Udepur",
             "Dahod",
             "Dangs (Ahwa)",
             "Devbhoomi Dwarka",
             "Gandhinagar",
             "Gir Somnath",
             "Jamnagar",
             "Junagadh",
             "Kachchh",
             "Kheda (Nadiad)",
             "Mahisagar",
             "Mehsana",
             "Morbi",
             "Narmada (Rajpipla)",
             "Navsari",
             "Panchmahal (Godhra)",
             "Patan",
             "Porbandar",
             "Rajkot",
             "Sabarkantha (Himmatnagar)",
             "Surat",
             "Surendranagar",
             "Tapi (Vyara)",
             "Vadodara",
             "Valsad"
          ]
       },
       {  
          "state":"Haryana",
          "districts":[  
             "Ambala",
             "Bhiwani",
             "Charkhi Dadri",
             "Faridabad",
             "Fatehabad",
             "Gurgaon",
             "Hisar",
             "Jhajjar",
             "Jind",
             "Kaithal",
             "Karnal",
             "Kurukshetra",
             "Mahendragarh",
             "Mewat",
             "Palwal",
             "Panchkula",
             "Panipat",
             "Rewari",
             "Rohtak",
             "Sirsa",
             "Sonipat",
             "Yamunanagar"
          ]
       },
       {  
          "state":"Himachal Pradesh",
          "districts":[  
             "Bilaspur",
             "Chamba",
             "Hamirpur",
             "Kangra",
             "Kinnaur",
             "Kullu",
             "Lahaul &amp; Spiti",
             "Mandi",
             "Shimla",
             "Sirmaur (Sirmour)",
             "Solan",
             "Una"
          ]
       },
       {  
          "state":"Jammu and Kashmir",
          "districts":[  
             "Anantnag",
             "Bandipore",
             "Baramulla",
             "Budgam",
             "Doda",
             "Ganderbal",
             "Jammu",
             "Kargil",
             "Kathua",
             "Kishtwar",
             "Kulgam",
             "Kupwara",
             "Leh",
             "Poonch",
             "Pulwama",
             "Rajouri",
             "Ramban",
             "Reasi",
             "Samba",
             "Shopian",
             "Srinagar",
             "Udhampur"
          ]
       },
       {  
          "state":"Jharkhand",
          "districts":[  
             "Bokaro",
             "Chatra",
             "Deoghar",
             "Dhanbad",
             "Dumka",
             "East Singhbhum",
             "Garhwa",
             "Giridih",
             "Godda",
             "Gumla",
             "Hazaribag",
             "Jamtara",
             "Khunti",
             "Koderma",
             "Latehar",
             "Lohardaga",
             "Pakur",
             "Palamu",
             "Ramgarh",
             "Ranchi",
             "Sahibganj",
             "Seraikela-Kharsawan",
             "Simdega",
             "West Singhbhum"
          ]
       },
       {  
          "state":"Karnataka",
          "districts":[  
             "Bagalkot",
             "Ballari (Bellary)",
             "Belagavi (Belgaum)",
             "Bengaluru (Bangalore) Rural",
             "Bengaluru (Bangalore) Urban",
             "Bidar",
             "Chamarajanagar",
             "Chikballapur",
             "Chikkamagaluru (Chikmagalur)",
             "Chitradurga",
             "Dakshina Kannada",
             "Davangere",
             "Dharwad",
             "Gadag",
             "Hassan",
             "Haveri",
             "Kalaburagi (Gulbarga)",
             "Kodagu",
             "Kolar",
             "Koppal",
             "Mandya",
             "Mysuru (Mysore)",
             "Raichur",
             "Ramanagara",
             "Shivamogga (Shimoga)",
             "Tumakuru (Tumkur)",
             "Udupi",
             "Uttara Kannada (Karwar)",
             "Vijayapura (Bijapur)",
             "Yadgir"
          ]
       },
       {  
          "state":"Kerala",
          "districts":[  
             "Alappuzha",
             "Ernakulam",
             "Idukki",
             "Kannur",
             "Kasaragod",
             "Kollam",
             "Kottayam",
             "Kozhikode",
             "Malappuram",
             "Palakkad",
             "Pathanamthitta",
             "Thiruvananthapuram",
             "Thrissur",
             "Wayanad"
          ]
       },
       {  
          "state":"Lakshadweep (UT)",
          "districts":[  
             "Agatti",
             "Amini",
             "Androth",
             "Bithra",
             "Chethlath",
             "Kavaratti",
             "Kadmath",
             "Kalpeni",
             "Kilthan",
             "Minicoy"
          ]
       },
       {  
          "state":"Madhya Pradesh",
          "districts":[  
             "Agar Malwa",
             "Alirajpur",
             "Anuppur",
             "Ashoknagar",
             "Balaghat",
             "Barwani",
             "Betul",
             "Bhind",
             "Bhopal",
             "Burhanpur",
             "Chhatarpur",
             "Chhindwara",
             "Damoh",
             "Datia",
             "Dewas",
             "Dhar",
             "Dindori",
             "Guna",
             "Gwalior",
             "Harda",
             "Hoshangabad",
             "Indore",
             "Jabalpur",
             "Jhabua",
             "Katni",
             "Khandwa",
             "Khargone",
             "Mandla",
             "Mandsaur",
             "Morena",
             "Narsinghpur",
             "Neemuch",
             "Panna",
             "Raisen",
             "Rajgarh",
             "Ratlam",
             "Rewa",
             "Sagar",
             "Satna",
             "Sehore",
             "Seoni",
             "Shahdol",
             "Shajapur",
             "Sheopur",
             "Shivpuri",
             "Sidhi",
             "Singrauli",
             "Tikamgarh",
             "Ujjain",
             "Umaria",
             "Vidisha"
          ]
       },
       {  
          "state":"Maharashtra",
          "districts":[  
             "Ahmednagar",
             "Akola",
             "Amravati",
             "Aurangabad",
             "Beed",
             "Bhandara",
             "Buldhana",
             "Chandrapur",
             "Dhule",
             "Gadchiroli",
             "Gondia",
             "Hingoli",
             "Jalgaon",
             "Jalna",
             "Kolhapur",
             "Latur",
             "Mumbai City",
             "Mumbai Suburban",
             "Nagpur",
             "Nanded",
             "Nandurbar",
             "Nashik",
             "Osmanabad",
             "Palghar",
             "Parbhani",
             "Pune",
             "Raigad",
             "Ratnagiri",
             "Sangli",
             "Satara",
             "Sindhudurg",
             "Solapur",
             "Thane",
             "Wardha",
             "Washim",
             "Yavatmal"
          ]
       },
       {  
          "state":"Manipur",
          "districts":[  
             "Bishnupur",
             "Chandel",
             "Churachandpur",
             "Imphal East",
             "Imphal West",
             "Jiribam",
             "Kakching",
             "Kamjong",
             "Kangpokpi",
             "Noney",
             "Pherzawl",
             "Senapati",
             "Tamenglong",
             "Tengnoupal",
             "Thoubal",
             "Ukhrul"
          ]
       },
       {  
          "state":"Meghalaya",
          "districts":[  
             "East Garo Hills",
             "East Jaintia Hills",
             "East Khasi Hills",
             "North Garo Hills",
             "Ri Bhoi",
             "South Garo Hills",
             "South West Garo Hills ",
             "South West Khasi Hills",
             "West Garo Hills",
             "West Jaintia Hills",
             "West Khasi Hills"
          ]
       },
       {  
          "state":"Mizoram",
          "districts":[  
             "Aizawl",
             "Champhai",
             "Kolasib",
             "Lawngtlai",
             "Lunglei",
             "Mamit",
             "Saiha",
             "Serchhip"
          ]
       },
       {  
          "state":"Nagaland",
          "districts":[  
             "Dimapur",
             "Kiphire",
             "Kohima",
             "Longleng",
             "Mokokchung",
             "Mon",
             "Peren",
             "Phek",
             "Tuensang",
             "Wokha",
             "Zunheboto"
          ]
       },
       {  
          "state":"Odisha",
          "districts":[  
             "Angul",
             "Balangir",
             "Balasore",
             "Bargarh",
             "Bhadrak",
             "Boudh",
             "Cuttack",
             "Deogarh",
             "Dhenkanal",
             "Gajapati",
             "Ganjam",
             "Jagatsinghapur",
             "Jajpur",
             "Jharsuguda",
             "Kalahandi",
             "Kandhamal",
             "Kendrapara",
             "Kendujhar (Keonjhar)",
             "Khordha",
             "Koraput",
             "Malkangiri",
             "Mayurbhanj",
             "Nabarangpur",
             "Nayagarh",
             "Nuapada",
             "Puri",
             "Rayagada",
             "Sambalpur",
             "Sonepur",
             "Sundargarh"
          ]
       },
       {  
          "state":"Puducherry (UT)",
          "districts":[  
             "Karaikal",
             "Mahe",
             "Pondicherry",
             "Yanam"
          ]
       },
       {  
          "state":"Punjab",
          "districts":[  
             "Amritsar",
             "Barnala",
             "Bathinda",
             "Faridkot",
             "Fatehgarh Sahib",
             "Fazilka",
             "Ferozepur",
             "Gurdaspur",
             "Hoshiarpur",
             "Jalandhar",
             "Kapurthala",
             "Ludhiana",
             "Mansa",
             "Moga",
             "Muktsar",
             "Nawanshahr (Shahid Bhagat Singh Nagar)",
             "Pathankot",
             "Patiala",
             "Rupnagar",
             "Sahibzada Ajit Singh Nagar (Mohali)",
             "Sangrur",
             "Tarn Taran"
          ]
       },
       {  
          "state":"Rajasthan",
          "districts":[  
             "Ajmer",
             "Alwar",
             "Banswara",
             "Baran",
             "Barmer",
             "Bharatpur",
             "Bhilwara",
             "Bikaner",
             "Bundi",
             "Chittorgarh",
             "Churu",
             "Dausa",
             "Dholpur",
             "Dungarpur",
             "Hanumangarh",
             "Jaipur",
             "Jaisalmer",
             "Jalore",
             "Jhalawar",
             "Jhunjhunu",
             "Jodhpur",
             "Karauli",
             "Kota",
             "Nagaur",
             "Pali",
             "Pratapgarh",
             "Rajsamand",
             "Sawai Madhopur",
             "Sikar",
             "Sirohi",
             "Sri Ganganagar",
             "Tonk",
             "Udaipur"
          ]
       },
       {  
          "state":"Sikkim",
          "districts":[  
             "East Sikkim",
             "North Sikkim",
             "South Sikkim",
             "West Sikkim"
          ]
       },
       {  
          "state":"Tamil Nadu",
          "districts":[  
             "Ariyalur",
             "Chennai",
             "Coimbatore",
             "Cuddalore",
             "Dharmapuri",
             "Dindigul",
             "Erode",
             "Kanchipuram",
             "Kanyakumari",
             "Karur",
             "Krishnagiri",
             "Madurai",
             "Nagapattinam",
             "Namakkal",
             "Nilgiris",
             "Perambalur",
             "Pudukkottai",
             "Ramanathapuram",
             "Salem",
             "Sivaganga",
             "Thanjavur",
             "Theni",
             "Thoothukudi (Tuticorin)",
             "Tiruchirappalli",
             "Tirunelveli",
             "Tiruppur",
             "Tiruvallur",
             "Tiruvannamalai",
             "Tiruvarur",
             "Vellore",
             "Viluppuram",
             "Virudhunagar"
          ]
       },
       {  
          "state":"Telangana",
          "districts":[  
             "Adilabad",
             "Bhadradri Kothagudem",
             "Hyderabad",
             "Jagtial",
             "Jangaon",
             "Jayashankar Bhoopalpally",
             "Jogulamba Gadwal",
             "Kamareddy",
             "Karimnagar",
             "Khammam",
             "Komaram Bheem Asifabad",
             "Mahabubabad",
             "Mahabubnagar",
             "Mancherial",
             "Medak",
             "Medchal",
             "Nagarkurnool",
             "Nalgonda",
             "Nirmal",
             "Nizamabad",
             "Peddapalli",
             "Rajanna Sircilla",
             "Rangareddy",
             "Sangareddy",
             "Siddipet",
             "Suryapet",
             "Vikarabad",
             "Wanaparthy",
             "Warangal (Rural)",
             "Warangal (Urban)",
             "Yadadri Bhuvanagiri"
          ]
       },
       {  
          "state":"Tripura",
          "districts":[  
             "Dhalai",
             "Gomati",
             "Khowai",
             "North Tripura",
             "Sepahijala",
             "South Tripura",
             "Unakoti",
             "West Tripura"
          ]
       },
       {  
          "state":"Uttarakhand",
          "districts":[  
             "Almora",
             "Bageshwar",
             "Chamoli",
             "Champawat",
             "Dehradun",
             "Haridwar",
             "Nainital",
             "Pauri Garhwal",
             "Pithoragarh",
             "Rudraprayag",
             "Tehri Garhwal",
             "Udham Singh Nagar",
             "Uttarkashi"
          ]
       },
       {  
          "state":"Uttar Pradesh",
          "districts":[  
             "Agra",
             "Aligarh",
             "Allahabad",
             "Ambedkar Nagar",
             "Amethi (Chatrapati Sahuji Mahraj Nagar)",
             "Amroha (J.P. Nagar)",
             "Auraiya",
             "Azamgarh",
             "Baghpat",
             "Bahraich",
             "Ballia",
             "Balrampur",
             "Banda",
             "Barabanki",
             "Bareilly",
             "Basti",
             "Bhadohi",
             "Bijnor",
             "Budaun",
             "Bulandshahr",
             "Chandauli",
             "Chitrakoot",
             "Deoria",
             "Etah",
             "Etawah",
             "Faizabad",
             "Farrukhabad",
             "Fatehpur",
             "Firozabad",
             "Gautam Buddha Nagar",
             "Ghaziabad",
             "Ghazipur",
             "Gonda",
             "Gorakhpur",
             "Hamirpur",
             "Hapur (Panchsheel Nagar)",
             "Hardoi",
             "Hathras",
             "Jalaun",
             "Jaunpur",
             "Jhansi",
             "Kannauj",
             "Kanpur Dehat",
             "Kanpur Nagar",
             "Kanshiram Nagar (Kasganj)",
             "Kaushambi",
             "Kushinagar (Padrauna)",
             "Lakhimpur - Kheri",
             "Lalitpur",
             "Lucknow",
             "Maharajganj",
             "Mahoba",
             "Mainpuri",
             "Mathura",
             "Mau",
             "Meerut",
             "Mirzapur",
             "Moradabad",
             "Muzaffarnagar",
             "Pilibhit",
             "Pratapgarh",
             "RaeBareli",
             "Rampur",
             "Saharanpur",
             "Sambhal (Bhim Nagar)",
             "Sant Kabir Nagar",
             "Shahjahanpur",
             "Shamali (Prabuddh Nagar)",
             "Shravasti",
             "Siddharth Nagar",
             "Sitapur",
             "Sonbhadra",
             "Sultanpur",
             "Unnao",
             "Varanasi"
          ]
       },
       {  
          "state":"West Bengal",
          "districts":[  
             "Alipurduar",
             "Bankura",
             "Birbhum",
             "Burdwan (Bardhaman)",
             "Cooch Behar",
             "Dakshin Dinajpur (South Dinajpur)",
             "Darjeeling",
             "Hooghly",
             "Howrah",
             "Jalpaiguri",
             "Kalimpong",
             "Kolkata",
             "Malda",
             "Murshidabad",
             "Nadia",
             "North 24 Parganas",
             "Paschim Medinipur (West Medinipur)",
             "Purba Medinipur (East Medinipur)",
             "Purulia",
             "South 24 Parganas",
             "Uttar Dinajpur (North Dinajpur)"
          ]
       }
    ]
 }

Posts: 2

Participants: 1

Read full topic

How to edit the content of the page using a modal page

$
0
0

@neenu123 wrote:

I have a subscription page consist of 3 cards, in which on selecting each card a button is enabled. This button is used to edit or add items to the page. When the button is clicked it will redirect to a modal page which consist of text fields. By clicking the close button in modal page the subscription page is automated to new contents which is given in the modal page. I am new in ionic so please help me with the full code to edit the items in the page.

subscription html



  <ion-header>
    <ion-navbar>
        <ion-title>SUBSCRIPTION</ion-title>
    </ion-navbar>
</ion-header>

<ion-content>
    <ion-item>
        <ion-buttons end>
            <button ion-button [disabled]="!isenabled" class="add_buttn" (click)="openModal({charNum: 0})">Add/Edit</button>
        </ion-buttons>
    </ion-item>
    <ion-label class="sentnc">Take your desired plan to get access to our content easily</ion-label>
    <ion-grid>
        <ion-row>
            <ion-col col-4 *ngFor="let sub of subLst">
                <ion-card (click)="onCardClick()">
                    <div *ngIf="cardClicked"></div>
                    <ion-card-content>
                        <ion-card-title class="titles">
                            {{sub.name}}
                        </ion-card-title>
                        <p>{{sub.plan}}</p>
                        <p>&nbsp;</p>
                        <p class="cost">₹{{sub.amount}}</p>
                        <p>&nbsp;</p>
                        <p>
                            <button  (click)="free_pay(option)" ion-button color="dark" round>Choose plan</button>
                        </p>
                    </ion-card-content>
                </ion-card>
            </ion-col>
        </ion-row>
    </ion-grid>
  </ion-content>


subscription ts page



import { Component } from '@angular/core';
import { NavController, NavParams, AlertController, LoadingController, Loading, IonicPage, Checkbox } from 'ionic-angular';
import { ObsAuthService } from '../../services/obs_auth.services';
import { ModalController, Platform, ViewController } from 'ionic-angular';
import { JobsearchPage } from '../jobsearch/jobsearch';
import { ConnectpayPage } from '../connectpay/connectpay';
import { AdminsubPage } from '../adminsub/adminsub';


@Component({
    selector: 'page-jobsub',
    templateUrl: 'jobsub.html',
    providers: [ObsAuthService]
})


export class JobsubPage {

    public isPayValid:boolean = false;

    jobseacrchPage:JobsearchPage;
    connectpayPage:ConnectpayPage;
    public category: string = "CLASSIC";
    public subscription: string = "PREMIUM";
    // public option: string = "";
    public opt:boolean=false;
    public cardClicked: boolean = false;
    isenabled: boolean = false;
    subLst: any = [{
        name: "Free",
        plan: "1 Month",
        discount: false,
        amount: 0,
        opt: true

    }, {
        name: "Classic",
        plan: "6 month",
        discount: false,
        amount: 100,
        opt: false

    }, {
        name: "Premium",
        plan: "1 Year",
        discount: false,
        amount: 200,
        opt: false

    }]
  

    constructor(private nav: NavController, private auth: ObsAuthService,
        private alertCtrl: AlertController, private loadingCtrl: LoadingController,
        public navParams: NavParams, public modalCtrl: ModalController) {
        // this.navParams.get('userParams');
    }

    openModal(characterNum) {

        let modal = this.modalCtrl.create(AdminsubPage, characterNum);
        modal.onDidDismiss(data => {
            // if (data != undefined) {
            //     this.subLst = data;

            // }
            console.log(data);
        });
        modal.present();
    }


    selectChange(e) {
        console.log(e);
    }

    //redirect to job search page
    public free_pay() {
      
        if(this.validate()){
            this.nav.push(JobsearchPage);
        }
        else{
            this.nav.push(ConnectpayPage);
        }
   
}

   
   
    //to enable the edit button
    public onCardClick() {
        this.cardClicked = !this.cardClicked;
        this.isenabled = true;
     
    }
   
    validate():boolean{
        if(this.opt==true){

            this.isPayValid=true;
        }
        else{
            this.isPayValid=false;
        }
        return this.isPayValid;

    }
}


modal html page


<ion-header>
    <ion-toolbar>
        <ion-title>
            Edit
        </ion-title>
        <ion-buttons end>
            <button ion-button (click)="closeModal()">Close</button>
        </ion-buttons>
    </ion-toolbar>
</ion-header>

<ion-content>
    <ion-col>
        <ion-row>
            <ion-item>
                <ion-label fixed>Title</ion-label>
                <ion-input type="text" value="">{{character.name}}</ion-input>
            </ion-item>
        </ion-row>
        <ion-item>
            <ion-label fixed>Plan</ion-label>
            <ion-input type="text" value="">{{character.plan}}</ion-input>
        </ion-item>
        <ion-item>
            <ion-label fixed>Amount</ion-label>
            <ion-input type="text" value="">{{character.amount}}</ion-input>
        </ion-item>
    </ion-col>
</ion-content>

modal ts page



import { Component } from '@angular/core';
import { NavController, AlertController, LoadingController, Loading, IonicPage } from 'ionic-angular';
import { Platform, NavParams, ViewController } from 'ionic-angular';
import { ObsAuthService } from '../../services/obs_auth.services';
import { ToastController } from 'ionic-angular';


@Component({
    selector: 'page-adminsub',
    templateUrl: 'adminsub.html',
    providers: [ObsAuthService]
})

export class AdminsubPage {
    character;
     data;

    constructor(private nav: NavController, private auth: ObsAuthService,
        private alertCtrl: AlertController, private loadingCtrl: LoadingController,
        public toastCtrl: ToastController, public platform: Platform,
        public params: NavParams,
        public viewCtrl: ViewController) {

        var characters = [
            {

                name: String,
                plan: String,
                amount: Number,
                // items: [
                //     { title: 'Race', note: 'Hobbit' },
                //     { title: 'Culture', note: 'River Folk' },
                //     { title: 'Alter Ego', note: 'Smeagol' }
                // ]
            }
        ];
        this.character = characters[this.params.get('charNum')];
    }
    public closeModal() {
        // let data = { 'foo': 'bar' };
        this.viewCtrl.dismiss(this.character);
    }

    selectChange(e) {
        console.log(e);
    }

}


Posts: 1

Participants: 1

Read full topic


Suddenly data is come "" from server there is any issue in my code?

$
0
0

@vishalkumargupta wrote:

data: " " headers: {"": “”} status: 200 url: “some url here” status is ok but data is come blank from some time ago , previously it is working fine. there is any solution for this.

Posts: 1

Participants: 1

Read full topic

Ionic 4 Push Notification Example

[Ionic 4] ion-menu side="start" not working correctly in RTL mode?

$
0
0

@sndwav wrote:

I’m trying to have the ion-menu slide in from the correct side in LTR and RTL.

Relevant code:

$app-direction: multi;
direction: rtl;

<ion-menu side="start">

But the menu always slide in from the left.

Am I doing something wrong or is there an issue with RTL support in Ionic 4?

Thanks for any help!

Posts: 3

Participants: 1

Read full topic

Ionic 1 slow slow rendering when leave view /Sqlite update data

$
0
0

@marian_surdu1 wrote:

Hi! I developing an application using ionic1 and AngularJS.When i want to go back to previous view i must save some data into sqlite database using sqlite plugin from https://github.com/litehelpers/Cordova-sqlite-storage.git .When i press button to go back i see a lag when it pass from a view to another.The sqlite table structure have two columns:

->Id -primary key -integer

->data-string

In this table i want to save data field as string(from json). Does anyone knows how to make this process faster? I’m using an iPad for testing. I’m posting my code here to show how save function is implemented.Thanks for any help. :slight_smile:

$scope.storeProfileDataCourses = function(data) {
           console.log('insertData');
           var querySelect = "SELECT * FROM Table where Id=?";
           $cordovaSQLite.execute(db, querySelect, [crewId]).then(function(res) {
               console.log('Rows:' + res.rows.length);
               if (res.rows.length > 0) {
                   var queryUpdate = "UPDATE Table SET data=? WHERE Id=?";
                   $cordovaSQLite.execute(db, queryUpdate, [JSON.stringify(data), crewId]).then(function(res) {
                       console.log('update');
                       console.log(res);
                   }, function(err) {
                       console.error(err);
                   });
               } else {
                   console.log('Need to insert');
                   var query = "INSERT INTO Table(Id,data) VALUES (?,?)";
                   $cordovaSQLite.execute(db, query, [Id, JSON.stringify(data)]).then(function(res) {
                       console.log("INSERT ID -> " + res.insertId);
                   }, function(err) {
                       console.error(err);
                   });
               }
           });
       }

Posts: 1

Participants: 1

Read full topic

Paytm integration in ionic

Ionic 4 with AngularJS 1.7.2 - how to load a directive into a modal?

$
0
0

@raz-ride4you wrote:

I would like to pop a modal in Ionic 4 with AngularJS (why there no category for Ionic 4 in this forum btw? I posted this on Ionic at general) and I want to put a directive inside the modal.

However Ionic 4 doesn’t allow to pop a modal on any HTML ID/class or attribute, where I can just lay a directive, and therefore I don’t have how to inject the data of the remote directive to the modal.

For example this is the Ionic 4 docs about modal for plain JS:

customElements.define('modal-page', class extends HTMLElement {
  connectedCallback() {
    this.innerHTML = `
<ion-header>
  <ion-toolbar>
    <ion-title>Super Modal</ion-title>
  </ion-toolbar>
</ion-header>
<ion-content>
  Content
</ion-content>`;
  }
});

async function presentModal() {
  // initialize controller
  const modalController = document.querySelector('ion-modal-controller');
  await modalController.componentOnReady();

  // present the modal
  const modalElement = await modalController.create({
    component: 'modal-page'
  });
  await modalElement.present();
}

As you can see, they register a new component with the customElements.define which I really don’t know what it is - they don’t describe on it anywhere.

But the problem in here is that they fetch HTML content - however I need to fetch the whole directive with his JS mechanism.

My questions:

  1. How can I do that? (based on AngularJS 1.7.2 directives).
  2. What is the customElements.define in Ionic - where can I find any explanation about this?

Posts: 1

Participants: 1

Read full topic

Will be docs for Ionic 4 for different frameworks?

$
0
0

@raz-ride4you wrote:

Ionic 4 docs are for Angular 7 and plain JS. Will be docs for AngularJS / React / Vue too?

BTW is Ionic 4 considered as BETA right now, or it’s a finished version?

Posts: 1

Participants: 1

Read full topic


Set value to ionic storage

$
0
0

@Milumaria wrote:

how can i get user id for all activities in user account after login in to their own account. how can store id to local storage in ionic 4.

Posts: 1

Participants: 1

Read full topic

Google Analytics in ionic

$
0
0

@Harikag wrote:

Hi All, is anyone worked on google analytics with ionic v1 and angular?. I added analytics.addTransaction(),analytics.addTransactionItem(),I am able to see Sales performance but not Checkout Behavior and Shopping Behaviour ,Product Performance,ProductList Performance etc…

Posts: 1

Participants: 1

Read full topic

Customized date selection in ionic 3/4

Ionic 4: Dhtmlx scheduler not working in the app

$
0
0

@yogeshyoyo wrote:

Hi,

i am trying to use dhtmlx scheduler which is used in my previous project using ionic 1 and angularjs. i tried use same library from npm( https://www.npmjs.com/package/dhtmlx-scheduler ) and followed this tutorial(https://dhtmlx.com/blog/angular-dhtmlxscheduler-tutorial/) to implement scheduler view in the app.
i have created a app using ‘ionic start myapp blank’ and followed the above tutorial but i am getting
error: Cannot find name ‘scheduler’.

can anyone suggest the solution for this please.Thanks in advance

Posts: 1

Participants: 1

Read full topic

Ionic live deploy issue

$
0
0

@coolestsumit wrote:

while connecting GitHub to ionic for live deploy getting on error of " Failed to create webhook. You may not have permission to create webhooks on this repo in GitHub.There was an error trying to connect to your repository".Kindly help waiting for the revert. Thanks in advance

Posts: 1

Participants: 1

Read full topic

Viewing all 70439 articles
Browse latest View live


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