(appRef: ApplicationRef)
| 29 | } |
| 30 | |
| 31 | export function init(appRef: ApplicationRef) { |
| 32 | const table = appRef.components[0].instance; |
| 33 | |
| 34 | function destroyDom() { |
| 35 | table.data = emptyTable; |
| 36 | appRef.tick(); |
| 37 | } |
| 38 | |
| 39 | function createDom() { |
| 40 | table.data = buildTable(); |
| 41 | appRef.tick(); |
| 42 | } |
| 43 | |
| 44 | function noop() {} |
| 45 | |
| 46 | initTableUtils(); |
| 47 | |
| 48 | bindAction('#destroyDom', destroyDom); |
| 49 | bindAction('#createDom', createDom); |
| 50 | bindAction('#createDomProfile', profile(createDom, destroyDom, 'create')); |
| 51 | bindAction('#updateDomProfile', profile(createDom, noop, 'update')); |
| 52 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…