0

私はAngularJSが初めてで、かなり基本的な問題があると思います。

ドロップダウン リストがあり、その選択内容に基づいて、その下のテーブルを所属情報で更新したいと考えています。

<div ng-controller="RightCtrl as right">
  <select ng-model="right.selectedModule">
    <option ng-repeat="module in right.modules" value="{{module.id}}">{{module.name}}
    </option>
  </select>
  <table>
  <thead>
    <th>Right name</th>
    <th>Description</th>
  </thead>
  <tbody ng-repeat="module in right.modules | filter: right.isCurrent">
  <tr ng-repeat="selRight in module.rights">
    <td right-id="{{selRight.id}}">{{selRight.name}}</td>
    <td>
      {{selRight.description}}
    </td>
  </tr>
  </tbody>
  </table>
</div>

私は jsfiddle ( http://jsfiddle.net/EN3S9/ ) を持っており、あらゆる助けに感謝しています。おそらく、私はまだその概念を完全には理解していません。

4

1 に答える 1