Comments (1)
Login 컴포넌트
data() {
return {
dialog: false,
}
},
methods : {
...
login() {
firebase
.auth()
.signInWithEmailAndPassword(this.email, this.password)
.then(
user => {
alert(this.email + "님 환영합니다");
this.$emit("child", this.dialog);
this.email = "";
this.password = "";
this.$router.replace("/");
},
err => {
alert("에러 : " + err.message);
}
);
},
...
}
$emit을 통해 부모로 전달이 가능하다.
this.$emit("child", this.dialog);
부모 컴포넌트
<template>
<v-dialog v-model="dialog" class="login-dialog" width="400">
<LoginDialog @child="parents" />
</v-dialog>
</template>
<script>
export default {
methods: {
parents(dialog) {
this.dialog = dialog;
}
}
}
</script>
이를 통해 해결이 가능하다.
from tech-interview-for-developer.
Related Issues (20)
- 이미지 링크 오류 HOT 2
- 이미지 경로 변경에 따른 누락 HOT 1
- JS오류에 대하여 HOT 1
- 원형 큐 구현 관련 HOT 1
- Index 설명 오류 제보드립니다. HOT 1
- Linux/Linux Basic Command.md 명령어 추가 문의 HOT 2
- 퀵 정렬 - bold 설정 HOT 4
- 이분 탐색 코드 HOT 1
- 사이트 링크 오류 : Web -> Spring -> 더티체킹 HOT 1
- ● Data Structrue 오타 HOT 1
- 백엔드 기술 면접 백과사전
- Typing mistake : Lauguage/[Javascript] Object Prototype.md HOT 1
- prepare to interview
- 이진 탐색 트리 삭제 Case.3 HOT 1
- Java Stream 문서 마크다운 오류
- Heap.md 삭제 예제 코드 오류
- python 추가
- 갑자기 repository 가 추가가 되었는데 제외 부탁드립니다. HOT 2
- how to read in English or Chinese HOT 1
- 오탈자 제보드려요 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tech-interview-for-developer.