Angular — Why we should avoid using public methods to design components

Liu Ting Chun
4 min readAug 8, 2020

There are many ways to communicate between components. One of the most frequently used approaches is via public method calls. Many developers with a strong classic web development background (such as JQuery) like using this approach to design components. However, it is in fact, not a good practice in the world of Angular.

Image from Blogchain

Issue 1: It cannot…

--

--

Liu Ting Chun

Web developer from Hong Kong. Most interested in Angular and Vue. Currently working on a Nuxt.js + NestJS project.