I would like to be able to do the following in my controller (Note* I'm using TypeScript):
disclosure.disclosureDocument = $scope.document;
where disclosure
is my model. However, this doesn't work as explained here.
My question is there a simple way to bind my input[type=file]
to $scope
so that I may assign it to my model and pass it through Nancy
and to my back-end? If more information is needed, please let me know.