| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 1× 3× 1× | import PhoneTableController from './phone-table.controller';
import phoneTableHtml from './phone-table.jade';
function PhoneTableDirective () {
return {
restrict: 'AE',
scope: {},
controller: PhoneTableController.name,
controllerAs: 'table',
bindToController: {
phones: '=',
firstButtonClick: '&',
secondButtonClick: '&'
},
template: phoneTableHtml
};
}
PhoneTableDirective.$inject = [];
export default PhoneTableDirective;
|