Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input file support, file-path text doesn't update with ng-model #227

Open
degs098 opened this issue Jun 4, 2017 · 0 comments
Open

Input file support, file-path text doesn't update with ng-model #227

degs098 opened this issue Jun 4, 2017 · 0 comments

Comments

@degs098
Copy link

degs098 commented Jun 4, 2017

Hi everyone.

I'm trying to update the file-path value with an ng-model, but it doesn't work.

<div class="file-field input-field"> <div class="btn blue darken-1"> <span>Adjuntar</span> <!-- Lectura Adjunta pregunta --> <input type="file" id="lecturaAdjuntaPregunta" ng-model="lecturaAdjuntaPregunta" class="hide" ng-disabled="lecturaCustomPregunta.length > 0" ng-file-on-change="adjuntarLecturaPregunta"> </div> <div class="file-path-wrapper"> <input type="text" id="lecturaAdjuntaTitle" ng-model="lecturaAdjuntaTitle" class="file-path validate"> </div> </div>

I'm trying to update the input file value from the controller and his file-path with the ng-model lecturaAdjuntaTitle.

The input file updates well with a directive that I made called ng-file-on-change, but the input text where the file-path has to be, doesn't get update.

Can you help us with this issue please? You may be able to add support for the input file for a more recent version of angular materialize.

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant