This should also part of the directive in my opinion. The controller just needs to provide the directive with the "list of topics" URL.