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 animation
- mysql if
- TAILWIND
- Angular Router
- egov spring ajax 사용 예시
- angular button
- formgroup
- scroll
- ajax 사용 예시
- 옵저버블
- 스크롤 이벤트
- summary
- route
- Ionic modal
- Router
- flex-1
- 검색
- 앵귤러 모달
- modal
- prisma
- 호버
- Oracle LISTAGG 사용 예시
- 앵귤러 애니메이션
- angular modal
- 스크롤 이벤트 감지
- ApexChart
- angular route
- 모달
- 셀렉트박스 커스텀
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