Files
freeplanet/src/views/todo-list/todo-list.ts

31 lines
697 B
TypeScript
Raw Normal View History

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'
@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()
}
}