Category: Angular 2+

14 Nov 2017
cat: Angular 2+

Angular 4 – UI Component using ContentChildren

In creating data driven web applications, we often write the same type of HTML and CSS over and over again throughout the application like a Table or a form group if you are using bootstrap. So we sometimes use themes that provide nice looking UI elements then we can just copy and paste the HTML codes. We end up with a bunch of duplicate HTML codes but we can create a reusable component or directive in Angular to render the HTML codes we want