lundi 3 août 2015

how can get queryParams from url

Url:192.168.0.40/index.html?code1=123#/cases/?code2=4567

How can get Code1 and Code2 from url?

My Code

App.CasesRoute = Ember.Route.extend({

    model: function(params) {  
        var code1=params.queryParams.code1;
        var code1=params.queryParams.code2;
    }
})

I can get code2 but code1 is undefined? please help me




Aucun commentaire:

Enregistrer un commentaire