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
- 스크롤 이벤트
- summary
- angular modal
- ApexChart
- TAILWIND
- egov spring ajax 사용 예시
- 앵귤러 모달
- formgroup
- route
- scroll
- 앵귤러 애니메이션
- prisma
- angular animation
- 검색
- Oracle LISTAGG 사용 예시
- Router
- modal
- 모달
- 옵저버블
- 셀렉트박스 커스텀
- 아이오닉 스크롤 이벤트
- ajax 사용 예시
- angular route
- Ionic modal
- 스크롤 이벤트 감지
- flex-1
- mysql if
- angular button
- 호버
- Angular Router
Archives
- Today
- Total
깜놀하는 해므찌로
typescript readonly 활용 예시 본문
반응형
SMALL
class Car{
#privat:number = 30;
protected protect:string = "protected";
readonly name:string = "Car"; // readonly 수정 불가능
// color:string;
constructor(public readonly color:string, name:string){
this.color = color;
this.name = name; // readonly 수정할 수 있도록 생성자에서 처리
}
start(){
console.log("start");
console.log(this.#privat); // private
}
}
반응형
LIST
'IT' 카테고리의 다른 글
typescript static 정적 변수 활용 예시 (0) | 2023.05.25 |
---|---|
Tailwind 단어 단위 줄바꿈 CSS (0) | 2023.05.24 |
@Observable @subscribe() (0) | 2023.05.23 |
typescript 접근제한자 (0) | 2023.05.23 |
Swiper too big size / Swiper size handle example / 스와이퍼 슬라이드 사이즈 조절 (0) | 2023.05.22 |