taiga-front/app/modules/profile/profile-projects/profile-projects.directive....

17 lines
447 B
CoffeeScript

ProfileProjectsDirective = () ->
link = (scope, elm, attr, ctrl) ->
ctrl.loadProjects()
return {
templateUrl: "profile/profile-projects/profile-projects.html",
scope: {
user: "="
},
link: link
bindToController: true,
controllerAs: "vm",
controller: "ProfileProjects"
}
angular.module("taigaProfile").directive("tgProfileProjects", ProfileProjectsDirective)