Skip to content

Commit

Permalink
fix: Add missing export modules names
Browse files Browse the repository at this point in the history
  • Loading branch information
samwx committed Mar 6, 2019
1 parent 4c9535b commit 55de5ef
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/components/expandableList/expandableList.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ export const ExpandableList = angular
bodyItems: '@?',
},
template: '<div class="expandable-list" ng-transclude></div>',
});
})
.name;
35 changes: 20 additions & 15 deletions src/components/listItem/listItem.component.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import angular from 'core/angular';

class ListItem {
listItemsCtrl: any;
isChecked: boolean = false;
Expand All @@ -13,18 +15,21 @@ class ListItem {
}
}

export const ListItemComponent = {
template: `
<card class="pl4">
<div class="flex">
<checkbox class="mr4" ng-model="$ctrl.isChecked"></checkbox>
<div ng-transclude></div>
</div>
</card>`,
controller: ListItem,
controllerAs: '$ctrl',
transclude: true,
require: {
listItemsCtrl: '^^listItems',
},
};
export const ListItemComponent = angular
.module('blipComponents.listItem', [])
.component('listItem', {
template: `
<card class="pl4">
<div class="flex">
<checkbox class="mr4" ng-model="$ctrl.isChecked"></checkbox>
<div ng-transclude></div>
</div>
</card>`,
controller: ListItem,
controllerAs: '$ctrl',
transclude: true,
require: {
listItemsCtrl: '^^listItems',
},
})
.name;

0 comments on commit 55de5ef

Please sign in to comment.