Angular Typescript Test
Objective, create directive for UI Bootstrap tabs.
Directive should take a function as a parameter, the function will return an instance of the model upon selection.
Model class is defined as:
export class DateTabs {
id: number;
title: string;
model: string;
}
Directive must have a controller and parameters are bind to controller. The controller will hold a reference to the model array which is used to create tabs.