localfiletovar - Forum

Forum Navigation
You need to log in to create posts and topics.

localfiletovar

hi everyone

in the localfiletovar example application, the name of the file appears with the format ["filename.txt"]

How to recover the name of the file without ["and"].

Thank you

@grab, please take a look at the attached sample app.
Just add this to the Container where you want to show your file name:

<span ng-bind-html="[filename]"></span>

I have also included a button so you can see the [filename] variable content in a JavaScript alert.

Regards.

Uploaded files:
  • You need to login to have access to uploads.
Vadim has reacted to this post.
Vadim

ok

thank you very much