Skip to content

Commit f91e031

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Use signal for automatic mark for check.
1 parent 35cfc42 commit f91e031

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

projects/igniteui-angular/src/lib/splitter/splitter-pane/splitter-pane.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, HostBinding, Input, ElementRef, Output, EventEmitter, booleanAttribute, ChangeDetectorRef } from '@angular/core';
1+
import { Component, HostBinding, Input, ElementRef, Output, EventEmitter, booleanAttribute, ChangeDetectorRef, signal, WritableSignal } from '@angular/core';
22

33
/**
44
* Represents individual resizable/collapsible panes.
@@ -22,7 +22,7 @@ import { Component, HostBinding, Input, ElementRef, Output, EventEmitter, boolea
2222
export class IgxSplitterPaneComponent {
2323
private _minSize: string;
2424
private _maxSize: string;
25-
private _order!: number;
25+
private _order: WritableSignal<number> = signal(null);
2626

2727
/**
2828
* @hidden @internal
@@ -104,11 +104,10 @@ export class IgxSplitterPaneComponent {
104104
/** @hidden @internal */
105105
@HostBinding('style.order')
106106
public get order() {
107-
return this._order;
107+
return this._order();
108108
}
109109
public set order(val) {
110-
this._order = val;
111-
this.cdr.markForCheck();
110+
this._order.set(val)
112111
}
113112

114113
/**

0 commit comments

Comments
 (0)