일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 모달
- 셀렉트박스 커스텀
- 스크롤 이벤트
- angular route
- formgroup
- route
- scroll
- Ionic modal
- 호버
- 앵귤러 모달
- Oracle LISTAGG 사용 예시
- TAILWIND
- angular animation
- 앵귤러 애니메이션
- prisma
- Router
- 아이오닉 스크롤 이벤트
- 옵저버블
- angular button
- 검색
- mysql if
- egov spring ajax 사용 예시
- angular modal
- Angular Router
- flex-1
- modal
- ajax 사용 예시
- 스크롤 이벤트 감지
- ApexChart
- summary
- Today
- Total
목록scroll service (2)
깜놀하는 해므찌로
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..

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..