# Using vue-router

TIP

This option helps users to close the picker without changing the screen when pressing the back button.

<date-picker use-router />
<date-picker use-router="foo" />
<date-picker id="bar" use-router />
example <date-picker use-router />          => example.com/home?vpd-75454=active
example <date-picker use-router="foo" />    => example.com/home?vpd-foo=active
example <date-picker id="bar" use-router /> => example.com/home?vpd-bar=active