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
- formgroup
- angular modal
- Ionic modal
- 앵귤러 모달
- angular button
- 호버
- angular animation
- 검색
- ajax 사용 예시
- Angular Router
- route
- modal
- 셀렉트박스 커스텀
- Router
- egov spring ajax 사용 예시
- flex-1
- 아이오닉 스크롤 이벤트
- 앵귤러 애니메이션
- 스크롤 이벤트 감지
- scroll
- 모달
- Oracle LISTAGG 사용 예시
- 옵저버블
- 스크롤 이벤트
- summary
- prisma
- ApexChart
- mysql if
- angular route
- TAILWIND
Archives
- Today
- Total
깜놀하는 해므찌로
Can't have multiple template bindings on one element. Use only one attribute prefixed with 에러 해결 본문
IT
Can't have multiple template bindings on one element. Use only one attribute prefixed with 에러 해결
agnusdei1207 2023. 6. 5. 11:27반응형
SMALL
<div>
<a *ngFor="let menu of menus" [routerLink]="menu.path" class="flex flex-col" (click)="handleMenuClick(menu)">
{{ menu.name }}
<ng-container *ngIf="menu.children && (currentPath == menu.path)">
<a *ngFor="let item of children">
{{ item.name }}
</a>
</ng-container>
</a>
</div>
1. 태그 안에 *ngIf 와 *ngFor 같이 사용해서 발생
2. ng-container 를 활용하여 해결
반응형
LIST
'IT' 카테고리의 다른 글
nx angular tailwind install cli (0) | 2023.06.05 |
---|---|
Ionic Angular Project start CLI 아이오닉 앵귤러 프로젝트 생성 (0) | 2023.06.05 |
앵귤러 사이드 메뉴 자동 닫힘 설정 angular side-menu / ng-container (0) | 2023.06.04 |
앵귤러 button 버튼 찍어내기 예시 (0) | 2023.06.03 |
Angular Swiper 활용 예시 (0) | 2023.06.02 |