form-field-image¶
Provide an image upload field. This relies on ng-file-upload.
Binding reference¶
field-id: A unique HTML id to associate label and input (string)field-label: The label text (string)field-width: The width of the field in bootstrap columns (1-12), default 9 (integer)field-label-width: The width of the label in bootstrap columns (1-12), default 3 (integer)field-required: Whether the field is required, default false (boolean)field-media-url: The url where the image filename value resides (string)field-title: The<img title>(string)field-data: A relevant entity data to send with the upload, optional (object)field-value: A controller variable to return theng-modelinput value (variable)
Transclude¶
The controller allows transclude to replace the thumbnail markup.
Controller¶
The controller uploads the file to api/uploads using ng-file-upload.