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
- Oracle LISTAGG 사용 예시
- Angular Router
- Router
- 옵저버블
- 스크롤 이벤트 감지
- ApexChart
- angular modal
- angular route
- angular animation
- modal
- 아이오닉 스크롤 이벤트
- 셀렉트박스 커스텀
- 검색
- route
- TAILWIND
- 앵귤러 모달
- ajax 사용 예시
- prisma
- flex-1
- 호버
- angular button
- scroll
- summary
- Ionic modal
- 앵귤러 애니메이션
- 스크롤 이벤트
- mysql if
- egov spring ajax 사용 예시
- 모달
- formgroup
Archives
- Today
- Total
깜놀하는 해므찌로
Angular Observable subscirbe 본문
반응형
SMALL
// 1번 사람의 정보를 받아 로그에 찍는 예시
this.http.get("https://swapi.dev/api/people/1")
.subscribe(response => console.log(response));
// 원하는 데이터만 얻어내는 예시
this.http.get("https://swapi.dev/api/people/1")
.pipe(map(response => ({
name: response.name,
birthYear: response.birth_year,
height: Number(response.height),
weight: Number(response.mass),
eyeColor: response.eye_color
})))
.subscribe(luke => console.log(luke))
https://stackblitz.com/edit/mapping-rxjs-data?file=src%2Fapp%2Fapp.component.html
Mapping Rxjs Data - StackBlitz
Starter project for Angular apps that exports to the Angular CLI
stackblitz.com
반응형
LIST
'IT' 카테고리의 다른 글
Angular HTTP 통신 예시 (0) | 2023.04.08 |
---|---|
Angular Observable Operator (0) | 2023.04.08 |
typescript array delete by index 요소 1개 삭제 예시 (0) | 2023.04.08 |
SPA Angular 구조 다이어그램 (0) | 2023.04.07 |
Angular *ngFor index 활용 예시 (0) | 2023.04.07 |