57 lines
1.6 KiB
TypeScript
57 lines
1.6 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
import { AppComponent } from './app.component';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
|
|
import { CoreModule } from './core/core.module';
|
|
import { CommonModule, DatePipe } from '@angular/common';
|
|
|
|
import { HomeComponent } from './features/home/home.component';
|
|
import { PopularComponent } from './features/discover/popular/popular.component';
|
|
import { TrendingComponent } from './features/discover/trending/trending.component';
|
|
import { SearchPageComponent } from './features/discover/search-page/search-page.component';
|
|
|
|
import { SharedModule } from './shared/shared.module';
|
|
import { ToastrModule } from 'ngx-toastr';
|
|
import { MinutesFormatPipe } from './shared/pipes/minutes-format/minutes-format.pipe';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
CommonModule,
|
|
CoreModule,
|
|
SharedModule,
|
|
|
|
AppRoutingModule,
|
|
|
|
BrowserModule,
|
|
BrowserAnimationsModule,
|
|
FormsModule,
|
|
ReactiveFormsModule,
|
|
|
|
HttpClientModule,
|
|
|
|
DragDropModule,
|
|
|
|
// ? downloaded
|
|
ToastrModule.forRoot(),
|
|
],
|
|
declarations: [
|
|
AppComponent,
|
|
|
|
// pages
|
|
HomeComponent,
|
|
PopularComponent,
|
|
TrendingComponent,
|
|
SearchPageComponent,
|
|
|
|
],
|
|
providers: [DatePipe, MinutesFormatPipe],
|
|
bootstrap: [AppComponent],
|
|
})
|
|
export class AppModule {}
|