Load JSON in AngularJS App (loading google spreadsheet)

后端 未结 2 1590
隐瞒了意图╮
隐瞒了意图╮ 2021-01-01 05:25

I am trying to load up a Google spreadsheet in my application, but I am not managing to make it work. I\'ve tried different ways of accessing the tree structure (via the con

2条回答
  •  北海茫月
    2021-01-01 06:13

    Here is a new working plunker. The problem was that it can't find the "yo" variable anymore.

    var parse = function(entry) {
      console.log(entry);
      var category = entry['gsx$category']['$t'];
      var description = entry['gsx$description']['$t'];
      var title = entry['gsx$title']['$t'];
      return {
        category: category,
        description: description,
        title: title,
        url: url
      };
    }
    

    http://plnkr.co/edit/YwskJRuORJBjw4S9wU7V?p=preview

提交回复
热议问题