Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- ajax 사용 예시
- modal
- 모달
- angular button
- Angular Router
- angular route
- Router
- 앵귤러 모달
- 스크롤 이벤트 감지
- angular modal
- route
- angular animation
- 앵귤러 애니메이션
- 아이오닉 스크롤 이벤트
- Ionic modal
- mysql if
- 옵저버블
- TAILWIND
- summary
- flex-1
- Oracle LISTAGG 사용 예시
- egov spring ajax 사용 예시
- formgroup
- 스크롤 이벤트
- ApexChart
- prisma
- 호버
- 검색
- scroll
- 셀렉트박스 커스텀
Archives
- Today
- Total
목록외부 요소 클릭 시 (1)
깜놀하는 해므찌로
Angular 특정 영역 외 외부 영역 클릭 시 dropbox 닫기
import { Component, HostListener, ElementRef, } from '@angular/core'; constructor(private outArea: ElementRef) {} @HostListener('document:mousedown', ['$event']) clickOut(event: any) { if (!this.outArea.nativeElement.contains(event.targat)) { this.isOpen = false; return; } }
IT
2023. 5. 3. 14:49