refactor(home): convert module to standalone

This commit is contained in:
4gray committed 2024-04-16 14:24:36 +02:00
1 parent 3e45433dbd
commit 2b86bb2012
16 files changed
+126 -132

No files matched your search

+1 -15
View File
@@ -1,47 +1,33 @@
import { DragDropModule } from '@angular/cdk/drag-drop';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { TranslateModule } from '@ngx-translate/core';
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
import { NgxWhatsNewModule } from 'ngx-whats-new';
import { PlaylistItemComponent } from '../home/recent-playlists/playlist-item/playlist-item.component';
import { RecentPlaylistsComponent } from '../home/recent-playlists/recent-playlists.component';
import { MaterialModule } from '../material.module';
import { FilterPipe } from './pipes/filter.pipe';
import { MomentDatePipe } from './pipes/moment-date.pipe';
@NgModule({
declarations: [
MomentDatePipe,
RecentPlaylistsComponent,
PlaylistItemComponent,
],
declarations: [MomentDatePipe],
imports: [
FilterPipe,
CommonModule,
FormsModule,
MaterialModule,
NgxWhatsNewModule,
ReactiveFormsModule,
TranslateModule,
DragDropModule,
NgxSkeletonLoaderModule.forRoot({
animation: 'pulse',
loadingText: 'This item is actually loading...',
}),
],
exports: [
DragDropModule,
FilterPipe,
FormsModule,
MaterialModule,
NgxWhatsNewModule,
MomentDatePipe,
ReactiveFormsModule,
TranslateModule,
RecentPlaylistsComponent,
PlaylistItemComponent,
],
})
export class SharedModule {}