Skip to content

Commit 810e41a

Browse files
committed
chore: readme and sample update
1 parent 499ef0e commit 810e41a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ file is instance of [FlowFile](https://github.com/flowjs/flow.js#flowfile).
7272
### Quick setup
7373
````html
7474
<div flow-init="{target: '/upload'}"
75-
flow-files-submitted="$flow.upload()">
75+
flow-files-submitted="$flow.upload()"
76+
flow-file-success="$file.msg = $message">
7677

7778
<input type="file" flow-btn/>
7879
Input OR Other element as upload button
@@ -82,12 +83,12 @@ file is instance of [FlowFile](https://github.com/flowjs/flow.js#flowfile).
8283
<tr ng-repeat="file in $flow.files">
8384
<td>{{$index+1}}</td>
8485
<td>{{file.name}}</td>
86+
<td>{{file.msg}}</td>
8587
</tr>
8688
</table>
8789
</div>
8890
```
8991

90-
9192
Need more examples?
9293
============
9394
Clone this repository and go to "ng-flow/samples/basic/index.html".

samples/image/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ <h1>flow image example</h1>
2929
<img flow-img="$flow.files[0]" />
3030
</div>
3131
<div>
32-
<a href="#" class="btn" ng-hide="$flow.files.length" flow-btn>Select image</a>
33-
<a href="#" class="btn" ng-show="$flow.files.length" flow-btn>Change</a>
32+
<a href="#" class="btn" ng-hide="$flow.files.length" flow-btn flow-attrs="{accept:'image/*'}">Select image</a>
33+
<a href="#" class="btn" ng-show="$flow.files.length" flow-btn flow-attrs="{accept:'image/*'}">Change</a>
3434
<a href="#" class="btn btn-danger" ng-show="$flow.files.length"
3535
ng-click="$flow.cancel()">
3636
Remove

0 commit comments

Comments
 (0)