Jump to content

Ionic v2 - HTTP Request help (Getting data from JSON)

Go to solution Solved by vorticalbox,

I believe you will have to use angularJS to do it, from i got from google. check out this Here 

Hi guys,

 

I'm trying to make an app during my work experience but I seem to be having an issue with Ionic 2 and despite endless amounts of googling (And I mean close to an hour of it) nothing seems to help.

 

I basically want to access a website's JSON and format it into a grid.

 

This is the page I want it on.

 

<ion-navbar *navbar>
  <ion-title>
    Tab 2
  </ion-title>
</ion-navbar>
<ion-content class="page2">
    <ion-grid>
        <ion-row>         
             <ion-col width-10>Course</ion-col>
            <ion-col width-10>Class</ion-col>
            <ion-col width-10>Teacher Initial</ion-col>
            <ion-col width-10>Classroom</ion-col>
            <ion-col width-10>Period Number of the day</ion-col>
            <ion-col width-10>Period Number of the year</ion-col>
        </ion-row>
        <ion-row>
            <ion-col width-10></ion-col>
            <ion-col width-10></ion-col>
            <ion-col width-10></ion-col>
            <ion-col width-10></ion-col>
            <ion-col width-10></ion-col>
        </ion-row>
    </ion-grid>

[/Code]

 

Thank you so much :(

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to post
Share on other sites

I believe you will have to use angularJS to do it, from i got from google. check out this Here 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

23 minutes ago, vorticalbox said:

I believe you will have to use angularJS to do it, from i got from google. check out this Here 

Thanks man!

 

Oh and how's life?

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to post
Share on other sites

2 minutes ago, AluminiumTech said:

Thanks man!

 

Oh and how's life?

Welcome. Just finished up uni so i actually have time to learn stuff again. Still have a professional computing issues report on "can hacking be ethical" so much fun :P You should check out angularJS very nice to use.

How about you? how is the browser going? I never did get around to getting involved :/

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×