프론트엔드 개발

프론트엔드 개발

  • 분류 전체보기 (13)
    • Vue (6)
    • JAVA (5)
      • JSP (5)
    • 노마드 코더 (2)
      • 리액트 챌린지 (2)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

프론트엔드 개발

컨텐츠 검색

태그

mapState vue router react useBean vuex vuejs Vue v-text-field 뷰 Vue3 jstl 노마드코더 mutation JSP router 가상돔 getters 노마드스터디 reactjs 리액트

최근글

댓글

공지사항

아카이브

mapState(1)

  • [Vue] Vuex ( state, getter, mapGetters, mapstate)

    1)state: component의 데이터 역할. ex) 모든 유저의 수를 불러 오고 싶을때 All Users({{$store.state.allUsers.length}}) 2)getter: component의 computed 역할. 코드를 줄여서 작성 가능하다. computed와 다른점. state를 쓸거라고 ()안에 넣어야한다. store.js getters: { //computed allUsersCount: function(state) { return state.allUsers.length } }, Allusers.vue All Users({{$store.getters.countOfSeoul}}) 아래와 같이 store를 통해 store.js의 긴 코드들을 불러올수 있다. store.js getter..

    2022.11.02
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바