Skip to content

Commit 90eadbd

Browse files
committed
fixed usage example
1 parent b6eb275 commit 90eadbd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ let vm = new Vue({
6464
```
6565
```html
6666
<div id="el">
67-
<formly-form :form="form" :model="model" :fields="fields" @submit="doSomething">
68-
<button>Submit</button>
69-
</formly-form>
67+
<form @submit="doSomething">
68+
<formly-form :form="form" :model="model" :fields="fields">
69+
<button>Submit</button>
70+
</formly-form>
71+
</form>
7072
</div>
7173
```
7274
If you include the script it will be installed for you.

0 commit comments

Comments
 (0)