일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 스크롤 이벤트 감지
- 셀렉트박스 커스텀
- 호버
- Router
- scroll
- prisma
- 모달
- mysql if
- 앵귤러 모달
- TAILWIND
- summary
- Oracle LISTAGG 사용 예시
- angular button
- 스크롤 이벤트
- flex-1
- 검색
- formgroup
- 아이오닉 스크롤 이벤트
- 옵저버블
- angular animation
- angular modal
- angular route
- 앵귤러 애니메이션
- Ionic modal
- route
- Angular Router
- egov spring ajax 사용 예시
- modal
- ajax 사용 예시
- ApexChart
- Today
- Total
목록스크롤 (3)
깜놀하는 해므찌로
import { ElementRef, Injectable, QueryList } from '@angular/core'; import { Subject } from 'rxjs'; @Injectable({ providedIn: 'root', }) export class ScrollService { subject$ = new Subject(); // 스크롤 이벤트를 전달하기 위한 Subject 객체 select(index: number) { this.subject$.next(index); // 주어진 인덱스를 Subject에 전달하여 구독자들에게 알림 } scrollTo(found: ElementRef) { if (found) { const layout = document.querySelector('#layo..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/rPeUg/btsgD92fR8G/EaC9PS94x0HSiXhDWHkat0/img.png)
1. 스크롤을 감지하여 현재 페이지의 위치에 맞게 aside 뷰를 수정해봅시다. 2. (Layout-page) 스크롤 감지를 위해 ion-content 태그에 scrollEvent 속성에 true 설정 및 ionScroll 이벤트 메소드를 선언합니다. import { ScrollService } from '../../services/scroll.service'; constructor(private scrollService: ScrollService) {} ionScroll(ev: any) { this.scrollService.next(ev.detail.currentY); } 3. 스크롤 이벤트 발생 시 현재 Y 축 위치를 가져옵니다. npx nx generate service --project clien..