Sample for a recursive template structure with Angular JS