2019-04-03 02:48:05 +02:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
import { Component, Watch } from 'vue-property-decorator'
|
|
|
|
|
import { CTodo } from '@src/components/todos/CTodo'
|
|
|
|
|
import { tools } from '@src/store/Modules/tools'
|
2019-07-12 14:09:44 +02:00
|
|
|
import { toolsext } from '@src/store/Modules/toolsext'
|
2019-04-03 02:48:05 +02:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
components: { CTodo },
|
|
|
|
|
filters: {
|
|
|
|
|
capitalize(value) {
|
|
|
|
|
return tools.capitalize(value)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
export default class TodoList extends Vue {
|
|
|
|
|
public categoryAtt: string = ''
|
|
|
|
|
|
|
|
|
|
@Watch('$route.params.category')
|
|
|
|
|
public changecat() {
|
|
|
|
|
this.categoryAtt = this.$route.params.category
|
|
|
|
|
console.log('this.categoryAtt', this.categoryAtt)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public created() {
|
|
|
|
|
console.log('LOAD TODO-LIST....')
|
|
|
|
|
|
|
|
|
|
this.changecat()
|
|
|
|
|
}
|
|
|
|
|
}
|