반응형
Angular에 파이프를 만들어서 객체를 넘겼는데 }를 빼먹었따고 아래와 같이 에러가 난다.
Parser Error: Missing expected } at the end of the expression
코드
<p>{{coinRow?.coins.dash.price|currencyExchange:{myCurrency:myCurrency,
currency:coinRow?.coins.currencies,exchangeRate:exchangeRate}}}</p>
Angular github 이슈에 보니 이미 올라온 이슈 .
해결법은 아래와같이 뒤에 객체와 칸을 뛰어준다.
<p>{{coinRow?.coins.dash.price|currencyExchange:{myCurrency:myCurrency,
currency:coinRow?.coins.currencies,exchangeRate:exchangeRate} }}</p>
반응형
'DEV > ANGULAR' 카테고리의 다른 글
angular httpclient 에러메세지가 null 일때 해결법 response error null (0) | 2017.08.15 |
---|---|
jhipster TS2559: Type 'typeof ' has no properties in common with type 'Component'. error 해결법 (0) | 2017.07.31 |