# Controlled
Modal can be controlled.
```html
Start Me up
Countdown {{ timeout / 1000 }}s
```
```js
export default {
data () {
return {
isActive: false,
timeout: 6000
}
},
methods: {
handleClick () {
this.isActive = true
this.timeout = 6000
let countdown = () => {
if (this.timeout <= 0) {
this.isActive = false
} else {
this.timeout -= 1000
setTimeout(countdown, 1000)
}
}
countdown()
}
}
}
```