These are chat archives for angular/angular-2-ionic-2

27th
Aug 2016
Ythalo Rossy Saldanha Lira
@ythalorossy
Aug 27 2016 00:49
@dirkteucher sorry for my lazy answer. I will look it.
blop.. blop..
@bluethefish
Aug 27 2016 05:25
@ythalorossy yes I talked to you create a function called isMobile as util and set it to one of the request or payload body as parameter isMobile to the server enjoy.
Ythalo Rossy Saldanha Lira
@ythalorossy
Aug 27 2016 11:26
@bluethefish My problem is that I want denied fake request. The request can't come from outside of my application. I need avoid fake requests and simulated request. I don't know if this is possible.
JSponaugle
@JSponaugle
Aug 27 2016 17:33

Ok i am learning angular2 as i go. I have advanced very well without getting data into the view. Now i am stuck.

        let token = '';
        this.storage.query("SELECT * FROM system WHERE title LIKE 'loginToken'").then((tokenData) => {
            if (tokenData.res.rows.length > 0) {
                for (let i = 0; i < tokenData.res.rows.length; i++) {
                    token = tokenData.res.rows.item(i).valu;
                }
            }
            // API Call Check if user has Active Trips. If no Active Trips set root to Fly
            this.apiService.getTripsAPI('{"token":"' + token + '"}').subscribe(
                apiData => {
                    console.log(apiData);
                    if (apiData.code == "0x1983") {
                        this.navCtrl.setRoot(FlyPage);
                    } else if (apiData.code == "1x1983") {
                        console.log("Do Some Shit!");
                        this.trips = apiData.trips;
                    }
                }
            );
        }, (error) => {
            console.log(error);
        });

Question is how to get this.trips into the html view

storatus
@storatus
Aug 27 2016 20:55
Hello
I need to do a header with an image like this
maybe someone did something similar ?