Which is better pipe vs function (in component class) in component view (html) ?

  1. Created a table with Angular Material
  2. JSON of crypto currencies.
  3. In Price column two scenarios one with function and other with pipe same code in both pipe and function.
  4. Note For better understanding you should know the pipe and function direct used in html view.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ACHARYA ANIL SURYAVANSHI

ACHARYA ANIL SURYAVANSHI

Software Engineer | Bharat Swabhiman Patanjali Social Activist | Speaker | Motivator | Yoga Trainer