25 lines
479 B
JavaScript
25 lines
479 B
JavaScript
import ngModule from '../module';
|
|
|
|
class Controller {
|
|
onClick(event) {
|
|
if (event.defaultPrevented)
|
|
event.stopImmediatePropagation();
|
|
}
|
|
|
|
preview(event) {
|
|
event.preventDefault();
|
|
this.list.openSummary(this.client);
|
|
}
|
|
}
|
|
|
|
ngModule.component('vnItemClient', {
|
|
template: require('./item-client.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
client: '<'
|
|
},
|
|
require: {
|
|
list: '^vnClientIndex'
|
|
}
|
|
});
|