danialfarid / ng-file-upload

Lightweight Angular directive to upload files with optional FileAPI shim for cross browser support
MIT License
7.87k stars 1.6k forks source link

🐛 Fixed id-attribute value interpolation #1991

Closed danielreiser closed 5 years ago

danielreiser commented 7 years ago

As I was building a component encapsulating a button combined with ngf, I came across a problem of an id passed as an expression. The result of the id on the newly create input would be id="ngf-" or id="ngf-label-".

So I added the $interpolate fn to handle this behaviour correctly. Regular strings will be returned as they were passed in.