Added and linked todo list to the project list

This commit is contained in:
Paolo Arena
2019-04-03 02:48:05 +02:00
parent 7cacf5c6ea
commit fe600f40a6
34 changed files with 493 additions and 153 deletions

View File

@@ -0,0 +1,29 @@
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'
@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()
}
}