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

Function getDirectionality

src/cdk/dialog/dialog.ts:40–53  ·  view source on GitHub ↗
(value: Direction)

Source from the content-addressed store, hash-verified

38import {DEFAULT_DIALOG_CONFIG, DIALOG_DATA, DIALOG_SCROLL_STRATEGY} from './dialog-injectors';
39
40function getDirectionality(value: Direction): Directionality {
41 const valueSignal = signal(value);
42 const change = new EventEmitter<Direction>();
43 return {
44 valueSignal,
45 get value() {
46 return valueSignal();
47 },
48 change,
49 ngOnDestroy() {
50 change.complete();
51 },
52 };
53}
54
55@Service()
56export class Dialog implements OnDestroy {

Callers 1

_createInjectorMethod · 0.85

Calls 1

signalFunction · 0.85

Tested by

no test coverage detected