This is a source code for my article at dev.to about practical use cases working with directive in angular.