Add Template Method Pattern in Angular Templates