Angular Directive: After adding a directive I no l

2019-08-25 08:03发布

问题:

How would I get the data from email address or password? In my case I have a combo box with an ng-model="selectedObject" assigned to it. However in my controller, $scope.selectedObject does not contain any data. It doesn't seem to be bound. Also, this binding worked before I added the directive. Any ideas?

<modal title="Remove a Group" visible="showRemoveModal">
  <form name="form" class="form-horizontal" role="form">
    <div style="width:500px">
      <div class="form-group">
         <label class="control-label" for="Name">Name&nbsp;</label>
         <select ng-model="selectedGroupForDelete" ng-options="group.Name for group in groups" />
      </div>
    </div>
  </form>
  <div class="modal-footer">
    <a href="#" class="btn btn-primary" data-dismiss="modal" ng-click="deleteGroup()" ng-disabled="!selectedGroupForDelete">Remove</a>
    <a href="#" class="btn" data-dismiss="modal">Cancel</a>
  </div>
</modal>

Here is the link to a sample: http://jsfiddle.net/alexsuch/RLQhh/