templateUrl function elem attrs if attrs template attrs template tasks

1
2
3
4
5
6
templateUrl: function(elem, attrs){
if (attrs.template && attrs.template=='tasks') {
return 'src/js/templates/directives/filtering_tasks.html';
}
return 'src/js/templates/directives/filtering.html';
}