angularjs - Input file error in lumx -
in directive, i'm trying use input file lumx following error:
<div flex-item> <lx-file-input label="browse..." id="files" ng-model="file"></lx-file-input> </div>
error: [$compile:nonassign] expression 'undefined' used directive 'lxfileinput' non-assignable! http://errors.angularjs.org/1.3.15/$compile/nonassign?p0=undefined&p1=lxfileinput
also, in official documentation lumx (http://ui.lumapps.com/directives/file-inputs), if check in console log, you'll see same error.
how can fix this?
i found reason, if encounter same issue. must need value attribute, this:
<lx-file-input label="browse..." value="file" id="files" ng-model="file"></lx-file-input>
Comments
Post a Comment