본문 바로가기

깜놀하는 해므찌로

검색하기
깜놀하는 해므찌로
프로필사진 agnusdei1207

  • 분류 전체보기 (599)
    • IT (598)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • modal
  • Router
  • angular modal
  • Ionic modal
  • flex-1
  • summary
  • TAILWIND
  • egov spring ajax 사용 예시
  • 아이오닉 스크롤 이벤트
  • route
  • angular animation
  • prisma
  • Oracle LISTAGG 사용 예시
  • 검색
  • 호버
  • 옵저버블
  • 앵귤러 애니메이션
  • 스크롤 이벤트
  • formgroup
  • 모달
  • angular button
  • 셀렉트박스 커스텀
  • 스크롤 이벤트 감지
  • scroll
  • angular route
  • Angular Router
  • ApexChart
  • 앵귤러 모달
  • ajax 사용 예시
  • mysql if
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바