import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AuthLoginComponent } from './auth-login/auth-login.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { KendoModule } from '../shared/kendo.module';
import { LoginComponent } from './login/login.component';
import { RouterModule, Routes } from '@angular/router';
import { RegisterComponent } from './register/register.component';
import { AuthService } from './services/auth.service';

const routes: Routes = [{ path: '', component: LoginComponent },
                        { path: 'register', component: RegisterComponent }];

@NgModule({
  declarations: [AuthLoginComponent, LoginComponent, RegisterComponent],
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    KendoModule,
    RouterModule.forChild(routes),
  ],
  providers: [AuthService]
})
export class AuthModule { }
