Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

Update stepper.md #630

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/components/stepper.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ Component events:
| `@step` | Emitted when navigating to another step. |

### Using `v-model`
Each QStep has a `name` prop (which is optional). Use this prop along with `v-model` to control the current step.
Each QStep has an optional `name` prop. Use the `@click` to set the value of `currentStep` in `v-model`. The example below shows how you can use `v-model` alone to control navigation using `@click` events.

The example below shows how you can use `v-model` alone to control navigation. Notice the `@click` events. If you dynamically insert/remove Steps it's better to use a Vue reference on QStepper and call `next()` or `previous()` methods since these methods are not binded to specific Step names.
If you dynamically insert/remove steps, then it's better to use a Vue reference on QStepper ($refs.stepper) and call the `next()` or `previous()` methods since these methods are not bound to specific step names.

```html
<template>
Expand Down