0

チュートリアルページのようにng-clickで変数に値を代入したいのですが、うまくいきません。私は何を間違っていますか?

  <div ng-controller="PropertyCtrl" ng-init="active='Please select an option'">
    <div class="left-third" >
      <ul>
        <li ng-repeat="property in properties">
          <a href="" ng-click="active='{{property}}'">{{property}}</a>
        </li>
      </ul>
    </div>
    <div class="right-rest">
      <h4>{{active}}</h4>
    </div>
  </div>

ご協力いただきありがとうございます!

4

1 に答える 1