Skip to content

Commit 0b1c36f

Browse files
committed
📝 Update readme example
1 parent 5f70de9 commit 0b1c36f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

README.md

+3-8
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,12 @@ https://github.com/icebob/vue-form-generator/archive/master.zip
5050
</div>
5151
</template>
5252

53-
```
54-
```js
5553
<script>
5654
import VueFormGenerator from "vue-form-generator";
5755
56+
Vue.use(VueFormGenerator);
57+
5858
export default {
59-
...
60-
components: {
61-
VueFormGenerator: VueFormGenerator.component
62-
},
63-
6459
data: {
6560
schema: { ... },
6661
model:
@@ -76,7 +71,7 @@ export default {
7671
validateAfterChanged: true
7772
}
7873
}
79-
...
74+
}
8075
</script>
8176
```
8277

0 commit comments

Comments
 (0)