A MEAN app for demonstrating how to parameterize differences when consolidating code into directives