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
- TAILWIND
- 검색
- 모달
- modal
- 스크롤 이벤트 감지
- angular modal
- ajax 사용 예시
- scroll
- 아이오닉 스크롤 이벤트
- 셀렉트박스 커스텀
- summary
- egov spring ajax 사용 예시
- formgroup
- 앵귤러 모달
- Ionic modal
- 앵귤러 애니메이션
- prisma
- 옵저버블
- Angular Router
- angular button
- mysql if
- ApexChart
- flex-1
- Oracle LISTAGG 사용 예시
- 스크롤 이벤트
- 호버
- route
- angular animation
- Router
- angular route
Archives
- Today
- Total
목록angular ngFor speed controll (1)
깜놀하는 해므찌로
ngFor speed controll 반복문 속도 조절 Directive 예시
import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core'; @Directive({ selector: '[ngForDelay]' }) export class NgForDelayDirective { @Input('ngForDelay') set ngForDelay(value: any[]) { value.forEach((item: any, index: number) => { setTimeout(() => { this.viewContainer.createEmbeddedView(this.templateRef, { $implicit: item, index: index }); }, index * 1000); // 인덱스 * 1초 })..
IT
2023. 5. 27. 15:38