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 |
Tags
- 호버
- angular modal
- route
- egov spring ajax 사용 예시
- ApexChart
- mysql if
- angular route
- scroll
- 셀렉트박스 커스텀
- 검색
- angular animation
- 앵귤러 애니메이션
- formgroup
- 모달
- 옵저버블
- 아이오닉 스크롤 이벤트
- Ionic modal
- ajax 사용 예시
- TAILWIND
- angular button
- summary
- Router
- 스크롤 이벤트 감지
- 앵귤러 모달
- Oracle LISTAGG 사용 예시
- Angular Router
- flex-1
- modal
- 스크롤 이벤트
- prisma
Archives
- Today
- Total
깜놀하는 해므찌로
Angular ngFor last 활용 예시 isLast 본문
반응형
SMALL
<div
*ngFor="let menu of menus; last as isLast"
class="p-2 px-4 py-5 text-white transition-all rounded-md cursor-pointer border-white/5 hover:text-gray-300 active:scale-95"
[class.border-b]="!isLast"
(click)="handleMenu(menu)"
>
{{ menu.data?.['label'] }}
</div>
1. isLast : boolean 마지막 요소인 경우 true
2. [class.border-b] = "조건" 참일 경우 클래스 추가
반응형
LIST