2024/05 3

[VueJS] 부모 자식 간의 연동 (props & emits )

[VueJS] 부모 자식 component 간의 연동 (props & emits)       component 관계: 현재창에서 다른창을 불러왔을 때, 현재창은 부모, 불려온 창은 자식 관계가 성립됨      [emits: 자식에서 부모로 보냄]// emit => 자식에서 부모로 보냄// 자식창에서,emits: ['emitName1', 'emitName2', ...]setup(props, { emit } ) context.emitemit('emitName1', {id: 'aabbcc', name: 'Neymar'});// 부모창에서," />const = (emitData) => { ... };        [props: 부모에서 자식으로 보냄]// props => 부모에서 자식으로 // 부모에서 변경된..

[Git] first commit 하기 & git ignore가 동작하지 않을 때(git cache 삭제)

[Git] first commit 하기 & git ignore가 동작하지 않을 때(git cache 삭제)      프로젝트를 만들고 맨 처음 깃에다가 올려보자   [git first commit]$ git init . // .은 디렉토리의 모든 것을 포함한다는 의미$ git add .$ git commit -m "firstCommit"$ git status // 상태 확인 (생략가능)$ git remote add origin //=======계정 확인========$ git config --global user.name $ git config --global user.email /=======계정 확인========$ git push -u origin master(or develop)        ..