- return [
- {champ: "Xerath", lane: "Middle"},
- {champ: "Quinn", lane: "Bottom"},
- ];
+ $.ajax("/lol/matches?region=" + app.region + "&summoner=" + app.summoner)
+ .done((data) => {
+ app.matches = data;
+ for (p in app.matches[0]) {
+ app.matchprops.push({
+ name: p,
+ text: p.toUpperCase(),
+ });
+ }
+ });