File with component markup added
Directive declaration in the JS file
Repeated markup replaced with directive usage on all three pages.
Attribute current-tab added to all directive usages
Template modified to be ready for customize from the inside of directive.
Added compile function to the directive