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
- 앵귤러 모달
- TAILWIND
- 아이오닉 스크롤 이벤트
- angular button
- formgroup
- Oracle LISTAGG 사용 예시
- angular route
- scroll
- Ionic modal
- angular modal
- 모달
- 셀렉트박스 커스텀
- summary
- angular animation
- prisma
- Angular Router
- modal
- 검색
- 호버
- route
- ApexChart
- Router
- mysql if
- 스크롤 이벤트
- 앵귤러 애니메이션
- flex-1
- 스크롤 이벤트 감지
- 옵저버블
- ajax 사용 예시
- egov spring ajax 사용 예시
Archives
- Today
- Total
깜놀하는 해므찌로
Angular button componet 예시 / 앵귤러 버튼 컴포넌트 예시 본문
반응형
SMALL
<div
class="rounded-md px-2.5 py-1.5 cursor-pointer"
[ngClass]="{
'bg-primary text-white hover:bg-primary-400': type === 'fill',
'border border-primary text-pirmary hover:bg-primary-500 hover:text-white ':
type === 'outline'
}"
>
<ng-content></ng-content>
</div>
import { Component, OnInit, Input } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
@Component({
selector: 'app-button',
templateUrl: './button.component.html',
styleUrls: ['./button.component.scss'],
standalone: true,
imports: [CommonModule, RouterModule],
})
export class ButtonComponent implements OnInit {
@Input() type?: 'fill' | 'outline' = 'fill';
constructor() {}
ngOnInit() {}
}
1. 버튼 템플릿 및 컴포넌트
반응형
LIST
'IT' 카테고리의 다른 글
No pipe found with name 'date'. 에러 해결 (0) | 2023.05.10 |
---|---|
Typescript Map 이중 활용 예시 (0) | 2023.05.10 |
nodejs 실행 무반응 / nodejs 실행 시 공백 (0) | 2023.05.10 |
'-v'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는배치 파일이 아닙니다. (0) | 2023.05.09 |
Angular 호버 유지 (0) | 2023.05.09 |