MCPcopy Create free account
hub / github.com/angular/components / DevAppDirectionality

Class DevAppDirectionality

src/dev-app/dev-app/dev-app-directionality.ts:13–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12@Service({autoProvided: false})
13export class DevAppDirectionality implements Directionality, OnDestroy {
14 readonly change = new EventEmitter<Direction>();
15
16 get value(): Direction {
17 return this.valueSignal();
18 }
19 set value(value: Direction) {
20 this.valueSignal.set(value);
21 this.change.next(value);
22 }
23
24 valueSignal = signal<Direction>('ltr');
25
26 ngOnDestroy() {
27 this.change.complete();
28 }
29}

Callers

nothing calls this directly

Calls 1

signalFunction · 0.85

Tested by

no test coverage detected