-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.module.ts
69 lines (65 loc) · 2.53 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Angular
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
// Modules
import { AppRoutingModule } from '@app/app-routing.module';
import { NgxMasonryModule } from 'ngx-masonry';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { FlexLayoutModule } from '@angular/flex-layout';
import { MatButtonModule } from '@angular/material/button';
// Components
import { AppComponent } from '@app/app.component';
// Route Components
import { HomeComponent } from '@app/components/routes/home/home.component';
import { ConnectComponent } from '@app/components/routes/connect/connect.component';
import { DevicesComponent } from '@app/components/routes/devices/devices.component';
import { PlaylistsComponent } from '@app/components/routes/playlists/playlists.component';
import { NowPlayingComponent } from './components/routes/now-playing/now-playing.component';
import { ErrorComponent } from './components/routes/error/error.component';
// Layout Components
import { HeaderComponent } from '@app/components/layout/header/header.component';
import { FooterComponent } from '@app/components/layout/footer/footer.component';
import { NowPlayingFooterComponent } from '@app/components/layout/now-playing-footer/now-playing-footer.component';
import { NowPlayingInfoComponent } from './components/layout/now-playing-info/now-playing-info.component';
// Services
import { SpotifyApiService } from '@app/services/spotify-api/spotify-api.service';
import { SpowerHourService } from '@app/services/spower-hour/spower-hour.service';
import { HttpErrorInterceptorService } from '@app/services/http-error-interceptor/http-error-interceptor.service';
@NgModule({
declarations: [
AppComponent,
HomeComponent,
ConnectComponent,
PlaylistsComponent,
HeaderComponent,
FooterComponent,
NowPlayingFooterComponent,
DevicesComponent,
NowPlayingComponent,
NowPlayingInfoComponent,
ErrorComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
HttpClientModule,
BrowserAnimationsModule,
NgxMasonryModule,
MatButtonModule,
FontAwesomeModule,
FlexLayoutModule,
],
providers: [
SpotifyApiService,
SpowerHourService,
{
provide: HTTP_INTERCEPTORS,
useClass: HttpErrorInterceptorService,
multi: true,
},
],
bootstrap: [AppComponent],
})
export class AppModule {}