From 4dac83aa5c67ed88f5af2018bbbdf5e86655c76b Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Fri, 20 Jan 2017 08:10:49 -0700 Subject: [PATCH] Update README.md Show that `label` needs to be nested under `templateOptions` --- README.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f320ab3..3842bca 100644 --- a/README.md +++ b/README.md @@ -35,18 +35,25 @@ let vm = new Vue({ { key: 'name', type: 'input', - label: 'Your name' + templateOptions: { + label: 'Your name' + } }, { key: 'sex', type: 'select', - label: 'Sex', - options: ['Male', 'Female'] + options: ['Male', 'Female'], + templateOptions: { + label: 'Sex' + } + }, { key: 'comments', type: 'textarea', - label: 'Comments' + templateOptions: { + label: 'Comments' + } } ] }, @@ -145,4 +152,4 @@ These should be added to the `templateOptions` property. Some input types may ha * [x] Custom attributes * [x] Custom Classes * [x] Custom events -* [ ] Handle errors & error classes \ No newline at end of file +* [ ] Handle errors & error classes