I'm using backbone.js for my mobile app project. My question is, how i can get value from url parameter then display on page?
js
define(['jquery', 'underscore', 'backbone','text!templates/attribute/attributeValueIndexTemplate.html'], function($, _, Backbone,attributeValueIndexTemplate) {
var AttributeValueIndexView = Backbone.View.extend({
el: $("#page"),
initialize: function() {
this.$el.off();
},
render: function(attributeId) {
this.$el.html(attributeValueIndexTemplate);
}
});
return AttributeValueIndexView;
});