@@ -18,9 +18,9 @@ import { CoreEventLoadingChangedData, CoreEvents } from '@singletons/events';
1818import { CoreUtils } from '@services/utils/utils' ;
1919import { CoreAnimations } from '@components/animations' ;
2020import { Translate } from '@singletons' ;
21- import { CoreComponentsRegistry } from '@singletons/components -registry' ;
21+ import { CoreDirectivesRegistry } from '@singletons/directives -registry' ;
2222import { CorePromisedValue } from '@classes/promised-value' ;
23- import { AsyncComponent } from '@classes/async-component ' ;
23+ import { AsyncDirective } from '@classes/async-directive ' ;
2424import { CoreApp } from '@services/app' ;
2525
2626/**
@@ -49,7 +49,7 @@ import { CoreApp } from '@services/app';
4949 styleUrls : [ 'loading.scss' ] ,
5050 animations : [ CoreAnimations . SHOW_HIDE ] ,
5151} )
52- export class CoreLoadingComponent implements OnInit , OnChanges , AfterViewInit , AsyncComponent , OnDestroy {
52+ export class CoreLoadingComponent implements OnInit , OnChanges , AfterViewInit , AsyncDirective , OnDestroy {
5353
5454 @Input ( ) hideUntil : unknown = false ; // Determine when should the contents be shown.
5555 @Input ( ) message ?: string ; // Message to show while loading.
@@ -65,7 +65,7 @@ export class CoreLoadingComponent implements OnInit, OnChanges, AfterViewInit, A
6565
6666 constructor ( element : ElementRef ) {
6767 this . element = element . nativeElement ;
68- CoreComponentsRegistry . register ( this . element , this ) ;
68+ CoreDirectivesRegistry . register ( this . element , this ) ;
6969
7070 // Calculate the unique ID.
7171 this . uniqueId = 'core-loading-content-' + CoreUtils . getUniqueId ( 'CoreLoadingComponent' ) ;
0 commit comments