mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
19 lines
535 B
TypeScript
19 lines
535 B
TypeScript
import { ChangeDetectionStrategy, Component, inject } from '@angular/core'
|
|
import { TuiLoader } from '@taiga-ui/core'
|
|
import {
|
|
POLYMORPHEUS_CONTEXT,
|
|
PolymorpheusContent,
|
|
} from '@taiga-ui/polymorpheus'
|
|
|
|
@Component({
|
|
standalone: true,
|
|
template: '<tui-loader [textContent]="content" />',
|
|
styleUrls: ['./loading.component.scss'],
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
imports: [TuiLoader],
|
|
})
|
|
export class LoadingComponent {
|
|
readonly content: PolymorpheusContent =
|
|
inject(POLYMORPHEUS_CONTEXT)['content']
|
|
}
|