RED-3800 - Refactoring / Code Cleanup
This commit is contained in:
parent
66277814c5
commit
1155c16f8a
@ -15,7 +15,7 @@ import { IListable } from '../models/listable';
|
||||
import { Id } from '../models/trackable';
|
||||
import { ListingService } from '../services/listing.service';
|
||||
import { TableItemComponent } from './table-item/table-item.component';
|
||||
import { ActiveListingEntityService } from '../../../../../../apps/red-ui/src/app/services/active-listing-entity.service';
|
||||
import { ActiveListingEntityService } from '../../services/active-listing-entity.service';
|
||||
|
||||
@Component({
|
||||
selector: 'iqser-table-content',
|
||||
|
||||
13
src/lib/services/active-listing-entity.service.ts
Normal file
13
src/lib/services/active-listing-entity.service.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { Injectable, signal } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ActiveListingEntityService {
|
||||
readonly #activeEntity = signal<string>('');
|
||||
readonly activeEntity = this.#activeEntity.asReadonly();
|
||||
|
||||
updateEntity(entity: string = '') {
|
||||
this.#activeEntity.set(entity);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user