krescruz / angular-materialize

Angularjs directives for Materialize CSS Framework https://github.com/Dogfalo/materialize
MIT License
397 stars 129 forks source link

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

Open degs098 opened 7 years ago

degs098 commented 7 years ago

Hi everyone.

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

`

Adjuntar
                                            <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!