
https://quasar.dev/start/quasar-cli Quasar UMD - CDN install | Quasar FrameworkHow to use the Unified Module Definition form of Quasar.quasar.dev cli 설치해서 진행 할거임$ npm i -g @quasar/cli$ npm init quasarnpm으로 프로젝트 생성 설치할 거임. 설치말고 걍 npm으로 라이브러리만 설치할 수도 있는데 그러면 기능이 한정적임 공식문서 보면됌 npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@quasar'npm ERR! [Error: EACCES: permission ..

기존 store.jsimport { createStore } from "vuex";const storage = { item(){ const arr = []; if(localStorage.length > 0){ for(var i = 0; i 이제 모듈화를 할 차례이다. 나는 각각 store의 vuex 함수 단위로 모듈화 했다.mutations.jsconst addOneItem = (state,todoItem) => { var obj = {completed : false , item : todoItem}; localStorage.setItem(todoItem,JSON.stringify(obj)); state.todoItems.pu..
게터스를 썻을 때 어느 부분에서 코딩을 편하게 할 수 있는지 볼수 있다. 게터스는 state 값을 가져오거나, 가공한 값을 불러올 때 찾는다. storeimport { createStore } from "vuex";export const store = createStore({ state : { price : 100 }, getters : { originalPrice(state){ return state.price; }, doublePrice(state){ return state.price * 2; }, triplePrice(state){ return sta..

mapMutations 사용store.jsexport const store = createStore({ state: { todoItems : storage.item() }, getters: { storedTodoItems(state){ return state.todoItems } }, mutations : { addOneItem(state,todoItem){ var obj = {completed : false , item : todoItem}; localStorage.setItem(todoItem,JSON.stringify(obj)); state.to..

Store에 있는 아래 4가지 속성들을 간편하게 코딩하는 방법- state -> mapState- getters -> mapGetters- mutations -> mapMutations- actions -> mapActions store.jsexport const store = createStore({ state: { todoItems : storage.item() }, getters: { storedTodoItems(state){ return state.todoItems } }, list.vue {{ todoItem.item }}this.$store.getters.storedTodoItems 로도 접근이 ..

아 아래부분에 변경하는 부분이 있구나.. 이렇게 접근해서 변경하는구나.. this.$store.commit(함수명,인자)를 넘겨서 사용할 수 있구만.. 인자를 여러개 보내고 싶으면 저렇게 보내면 된다.payload라는 매개변수로 정의했는데 아마도 법칙이 아닐까 싶다.아 관행적으로 하는 것이 맞다고 강의에서 말한다. 바꿔도 되지만 통상적으로 사용하는 매개변수 명임.. 실제로 이렇게 store.js에 작성했다.export const store = createStore({ state: { todoItems : storage.item() }, mutations : { addOneItem(state,todoItem){ var obj = {comple..
- Total
- Today
- Yesterday
- hypertexttransferprotocol
- 인터셉터
- rejectValue
- jpa api
- exception
- 항해99
- 항해플러스
- thymleaf
- 향해플러스백엔드
- 리터럴
- SpringBoot
- React
- JPA
- 백엔드 개발자 역량
- 향해99
- BindingResult
- 스프링부트
- react실행
- 예외처리
- ArgumentResolver
- Java
- 컨트
- 향해플러스
- Intercepter
- HTTP
- 로그인
- 스프링공부
- filter
- reject
- 백엔드 개발자 공부
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |