Skip to content

Seems not to work with angular ^1.6.9 #14

@vodolaz095

Description

@vodolaz095

I use directive like yours, and file upload element defined in template like this:

  <div class="form-action" ng-if="source === 'upload'">
    <div class="form-group">
      <label for="uploadFile">Your file, please:</label>
      <input class="btn btn-success" id="uploadFile"
             type="file"
             file-model="emailsPayload"
      />
    </div>
  </div>

in corresponding controller, there is

        $scope.emailsPayload = {}; // http://plnkr.co/edit/0ZHCsR?p=preview
        $scope.$watch('emailsPayload', function (newVal) {
          console.log('emailsPayload', newVal);
        });

but no mater what i doo, the $scope.emailsPayload is still {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions