본문 바로가기
memo

angular/html template debug /json pipe

by Birthmark 2022. 3. 31.

html 파일 mat-list태그 안의 배열 값을 확인하고싶은데 dev tools로 확인하기 힘들었음

angular template 에는 console.log 대신

{{ item|json }} 찍어보면 원하는 item 값이 출력됨

https://angular.io/api/common/JsonPipe

 

Angular

 

angular.io

 

'memo' 카테고리의 다른 글

CORS error  (0) 2022.06.11
OS 가 달라도 문제가 없도록 crlf 처리 방법을 결정  (0) 2022.05.10
PoC(Proof of Concept)  (0) 2022.03.26
AWS EC2 Instance Elastic IP  (0) 2022.03.16
Unit test  (0) 2022.03.01

댓글