Комментарии:
Having A Doubt On This ! Instead Of Using Pipes We Can Use Ternary Operator Inside Interpolation. Right ? Which One Is Better And Recommend To Use ?
ОтветитьThe pipe is started only when the input data changes, and the function call in the template is triggered on each ChangeDetection called
ОтветитьI had similar doubt for a long time. Should I use pipe or function in template ?
And found this behaviour template function get called repeatedly regardless of the value change and pipe get called only if the value changes.
But isnt it's confusing! why does Angular2 call the function blindly.
This behaviour make sense only if something changed in the parent(template level). For example if parent had a variable binding which got changed. As a side effect all its childs may require a re-render or refresh.
Actually I ended up here looking an answer for the it. Can you explain this.
Its very helpful insights
ОтветитьHow did you create a pipe on the fly ?
ОтветитьThis makes sense... Good work Pandiyan :)
ОтветитьGood one concept. We are expecting more from you Pandiyan. Keep doing well.
ОтветитьThat was helpful @Pandiyan
Actually i started to work on ng days ago!
This really helped on understanding the usage of pipes .
It's better you can share the code used for the demo!
Looking forward to the upcoming videos.