일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- formgroup
- route
- 앵귤러 모달
- 검색
- modal
- 아이오닉 스크롤 이벤트
- angular modal
- ApexChart
- 스크롤 이벤트
- 옵저버블
- scroll
- Router
- summary
- 호버
- Ionic modal
- angular button
- Angular Router
- ajax 사용 예시
- TAILWIND
- 스크롤 이벤트 감지
- angular route
- angular animation
- mysql if
- flex-1
- prisma
- 셀렉트박스 커스텀
- Oracle LISTAGG 사용 예시
- 모달
- egov spring ajax 사용 예시
- 앵귤러 애니메이션
- Today
- Total
목록scroll (4)
깜놀하는 해므찌로
1. 부모요소의 크기에 맞게만 사이드를 내려오도록 설정하기 2. ngClass 를 활용하여 fixed, absolute 로 조절 @ViewChild('headerDiv', { read: ElementRef }) headerDiv: ElementRef; reportMenuPosition = 0; onScroll() { this.scrollTop = this.section.nativeElement.scrollTop; this.reportMenuPosition = this.scrollTop + this.reportDiv.nativeElement.clientHeight; } 3. bottom 을 기준으로 멈춰야 하므로 스크롤 탑 + div 요소를 더해서 bottom 을 구하기 4. 전역 변수에 할당 후 해당 변..
...
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..