()
| 46 | readonly change = new EventEmitter<Direction>(); |
| 47 | |
| 48 | constructor() { |
| 49 | const _document = inject(DIR_DOCUMENT, {optional: true}); |
| 50 | |
| 51 | if (_document) { |
| 52 | const bodyDir = _document.body ? _document.body.dir : null; |
| 53 | const htmlDir = _document.documentElement ? _document.documentElement.dir : null; |
| 54 | this.valueSignal.set(_resolveDirectionality(bodyDir || htmlDir || 'ltr')); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | ngOnDestroy() { |
| 59 | this.change.complete(); |
nothing calls this directly
no test coverage detected