# AngularでObjectを返すカスタムPipeを作ったがValueへのアクセス方法がわかなかったので調べてみた

Table of Contents

Objectを返すPipe

template側で展開するとこんな感じのやつ。

value | customPipe |json
{hoge:'hoge', fugo:'fugo', piyo.'piyo'}

参照方法は簡単

(value | customPipe).hoge
// hoge

で参照できる、ただこれだけ。

My avatar

Thanks for reading my blog post! Feel free to check out my other posts or contact me via the social links in the footer.


More Posts

Comments