我想使用angularjs获取复杂的json数据

时间:2018-05-10 09:50:06

标签: angularjs json

您好我正在尝试创建第三级选择选项,但无法从json获取数据。请帮助我或纠正我在哪里犯错误

c3
let currentUser: {
  loggedIn: false
}

let sessionServiceStub = {


  getMe: function () {
    return currentUser
  }
}

1 个答案:

答案 0 :(得分:0)

尝试

  <select id="area" ng-model="selectedAreaName" ng-options="data.title for data in selectedCity.Area"></select>

Here is the plunkr