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
- modal
- ApexChart
- 아이오닉 스크롤 이벤트
- angular route
- 스크롤 이벤트
- Angular Router
- scroll
- angular animation
- 앵귤러 모달
- Ionic modal
- angular button
- 검색
- formgroup
- Router
- TAILWIND
- prisma
- 모달
- ajax 사용 예시
- Oracle LISTAGG 사용 예시
- mysql if
- 옵저버블
- summary
- 스크롤 이벤트 감지
- flex-1
- angular modal
- route
- 셀렉트박스 커스텀
- egov spring ajax 사용 예시
- 앵귤러 애니메이션
- 호버
Archives
- Today
- Total
깜놀하는 해므찌로
Angular component string to template HTML / 컴포넌트 string 템플릿에서 html로 읽는 방법 예시 본문
IT
Angular component string to template HTML / 컴포넌트 string 템플릿에서 html로 읽는 방법 예시
agnusdei1207 2023. 4. 26. 14:06반응형
SMALL
<div
class="flex gap-2.5"
[innerHTML]="setStateButton(item.status)"
></div>
1. intterHTML 활용
setStateButton(data?: any): string {
if (data === '재고 요청 중') {
return `<div class="flex justify-center items-center py-1 px-2.5 border text-gray-500 border-gray-500
rounded font-semibold">수정</div>
<div class="flex justify-center items-center py-1 px-2.5 border border-danger rounded font-semibold text-danger">
삭제</div>`;
}
return '';
}
반응형
LIST
'IT' 카테고리의 다른 글
C언어 기초 알고리즘 배열 내 가장 큰 수 찾기 예시 (0) | 2023.04.26 |
---|---|
CSS select box custom Primary feat.tailwind (0) | 2023.04.26 |
tailwind 기본 설정 / tailwind is not working (0) | 2023.04.25 |
transition-all css / select custom / details div로 끝내기 (0) | 2023.04.25 |
selectbox custom Details 활용 예시 (0) | 2023.04.25 |