M
M
Max2017-05-25 23:46:16
Angular
Max, 2017-05-25 23:46:16

Input file in AngularJs. How to add a photo to a new DOM element created via angular?

How to add a photo to a new DOM element created via angular?

<input type="text" ng-model="newItem" />
<input  type="text" ng-model="newItemScore" />
<input  type="file" ng-model="newItemImg" />
<button ng-click="addShop(newItem, newItemScore, newItemImg)">add</button>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Postaner, 2017-05-26
@Postaner

Everything is detailed there. https://stackoverflow.com/questions/18571001/file-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question