memo

angular/html template debug /json pipe

Birthmark 2022. 3. 31. 21:29

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

angular template 에는 console.log 대신

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

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

 

Angular

 

angular.io

 

저작자표시 (새창열림)