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
- angular modal
- flex-1
- mysql if
- Angular Router
- prisma
- angular animation
- route
- Oracle LISTAGG 사용 예시
- angular button
- 앵귤러 모달
- 앵귤러 애니메이션
- formgroup
- summary
- 모달
- TAILWIND
- Router
- ApexChart
- angular route
- modal
- 셀렉트박스 커스텀
- 옵저버블
- 검색
- egov spring ajax 사용 예시
- 호버
- ajax 사용 예시
- 스크롤 이벤트 감지
- scroll
- Ionic modal
- 아이오닉 스크롤 이벤트
- 스크롤 이벤트
Archives
- Today
- Total
목록페이지 최상단 (1)
깜놀하는 해므찌로
Ionic angular router page changed scrollTop / 페이지 이동 시 최상단 고정 예시
viewChild 선언 id="main" style="width: 100%; height: 100%" [scrollEvents]="true" (ionScroll)="ionScroll($event)" > -> 페이지 이동 시 메소드 연결 1. #content -> viewChild 를 활용하기 위해 선언합니다. 2. router-outlet (active) 액티브한 순간 시점을 잡아내기 위해 메소드를 연결합니다. @ViewChild(IonContent) content!: IonContent; onActivate(e: any) { this.content.scrollToTop(); } 3. 페이지가 이동하는 순간 ViewChild 로 받은 현재의 페이지 스크롤을 최상단으로 이동시킵니다.
IT
2023. 7. 10. 18:34