-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
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
Labels
No labels