Quantcast
Channel: angular.org.il
Viewing all articles
Browse latest Browse all 175

Creating Reusable Components with NgTemplateOutlet in Angular

$
0
0

The single responsibility principle is the idea that pieces of your app should have one purpose. Following this principle makes your Angular app easier to test and develop. In this post we will be breaking a CardOrListViewComponent into 🐊 bite-sized pieces with the help of NgTemplateOutlet. Using NgTemplateOutlet instead of creating specific components allows for components to be easily modified for various use cases without having to modify the component itself!

Source: Creating Reusable Components with NgTemplateOutlet in Angular

The post Creating Reusable Components with NgTemplateOutlet in Angular appeared first on angular.org.il.


Viewing all articles
Browse latest Browse all 175

Trending Articles