・
수강평 5
・
평균평점 4.6
Vue 로 개발을 하면서, TypeScript 기반으로 어떻게 개발하는지 맛을보고싶었는데, 좋은 강의가 있어서 잘 들었습니다. vue 3.0 이 빨리 나와서 저도 TS기반(좀 더 TS 친화적인?)에 SPA 개발을 하고싶네요! 감사합니다. 마지막 TODO 예제는 라우트에다 watch 를 달아서 처리를 했네요.. 좋은 방식은 아니지만.. 그래도 원하는대로 동작하니.. 나중에 시간나면 좀 더 리팩토링 해보던가 이대로 두는걸로! ㅠㅠㅋㅋ @Watch('$route') public watchRouteParam(after: any, before: any) { if (after.params.hasOwnProperty('path')) { switch (after.params.path) { case 'list-active' : this.todoData = this.$store.getters.todoActiveItem; break; case 'list-clear' : this.todoData = this.$store.getters.todoClearItem; break; } } else { this.todoData = this.$store.getters.todoItem; } }