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