Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { NgModule } from '@angular/core'
- import { CommonModule } from '@angular/common'
- import { RouterModule } from '@angular/router'
- import { ReactiveFormsModule } from '@angular/forms'
- import { AuthService } from './services/auth.service'
- import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http'
- import { UserService } from './services/user.service'
- import { HttpInterceptorService } from './interceptors/http-interceptor.service'
- import { BodyService } from './services/body.service'
- @NgModule({
- imports: [
- CommonModule,
- RouterModule,
- ReactiveFormsModule,
- HttpClientModule,
- ],
- exports: [
- CommonModule,
- RouterModule,
- ReactiveFormsModule,
- HttpClientModule,
- ],
- providers: [
- AuthService,
- UserService,
- BodyService,
- {
- provide : HTTP_INTERCEPTORS,
- useClass: HttpInterceptorService,
- multi : true,
- },
- ],
- declarations: []
- })
- export class SharedModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement