Angular — Four Practical Tips to Build a Good Shared Component

Liu Ting Chun
4 min readJun 4, 2020

Component is the basic building block of an Angular application. When working on a large application, it is very essential to have shared components for common features. Here are four tips for you to build a good shared Angular component. You may also use them to improve your existing components.

1. Provide Default Value for Optional Inputs

--

--

Liu Ting Chun

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