Commit 8703c317 authored by Robert Knight's avatar Robert Knight

Make `group-list` exports consistent with other components

Just export the component definition rather than an object containing
both the controller and the component definition as a property.
parent 2c557e38
......@@ -140,7 +140,7 @@ module.exports = angular.module('h', [
.component('annotationShareDialog', require('./components/annotation-share-dialog'))
.component('annotationThread', require('./components/annotation-thread'))
.component('dropdownMenuBtn', require('./components/dropdown-menu-btn'))
.component('groupList', require('./components/group-list').component)
.component('groupList', require('./components/group-list'))
.component('helpLink', require('./components/help-link'))
.component('helpPanel', require('./components/help-panel'))
.component('loggedoutMessage', require('./components/loggedout-message'))
......
......@@ -34,7 +34,7 @@ function GroupListController($window, groups, settings, serviceUrl) {
}
}
var component = {
module.exports = {
controller: GroupListController,
controllerAs: 'vm',
bindings: {
......@@ -42,8 +42,3 @@ var component = {
},
template: require('../templates/group_list.html'),
};
module.exports = {
component: component,
Controller: GroupListController,
};
......@@ -17,7 +17,7 @@ describe('groupList', function () {
before(function() {
angular.module('app', [])
.component('groupList', groupList.component)
.component('groupList', groupList)
.factory('groups', function () {
return fakeGroups;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment