Skip to content

Commit efa4e91

Browse files
committed
updated component suffix
1 parent 3ceddc3 commit efa4e91

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

src/app/app.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { HttpModule } from '@angular/http';
55
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
66

77
import { AppComponent, ROUTES, AppState } from './';
8-
import { Login } from './login';
9-
import { Register } from './register';
10-
import { SetNewPassword } from './set-new-password';
11-
import { ForgotPassword } from './forgot-password';
8+
import { LoginComponent } from './login';
9+
import { RegisterComponent } from './register';
10+
import { SetNewPasswordComponent } from './set-new-password';
11+
import { ForgotPasswordComponent } from './forgot-password';
1212

1313
const APP_PROVIDERS = [
1414
AppState
@@ -22,7 +22,7 @@ const APP_PROVIDERS = [
2222
ReactiveFormsModule,
2323
RouterModule.forRoot(ROUTES, {useHash: false})
2424
],
25-
declarations: [AppComponent, Login, Register, SetNewPassword, ForgotPassword],
25+
declarations: [AppComponent, LoginComponent, RegisterComponent, SetNewPasswordComponent, ForgotPasswordComponent],
2626
bootstrap: [AppComponent],
2727
providers: [
2828
APP_PROVIDERS

src/app/app.routes.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { Routes } from '@angular/router';
22

3-
import { Login } from './login';
4-
import { Register } from './register';
5-
import { ForgotPassword } from './forgot-password';
6-
import { SetNewPassword } from './set-new-password';
3+
import { LoginComponent } from './login';
4+
import { RegisterComponent } from './register';
5+
import { ForgotPasswordComponent } from './forgot-password';
6+
import { SetNewPasswordComponent } from './set-new-password';
77

88
export const ROUTES: Routes = [
9-
{path: '', component: Login},
10-
{path: 'login', component: Login},
11-
{path: 'register', component: Register},
12-
{path: 'forgot-password', component: ForgotPassword},
13-
{path: 'set-new-password', component: SetNewPassword},
9+
{path: '', component: LoginComponent},
10+
{path: 'login', component: LoginComponent},
11+
{path: 'register', component: RegisterComponent},
12+
{path: 'forgot-password', component: ForgotPasswordComponent},
13+
{path: 'set-new-password', component: SetNewPasswordComponent},
1414
];

src/app/forgot-password/forgotPassword.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { EmailValidator } from '../email-validator';
99
styles: [require('./forgotPassword.component.scss')],
1010
template: require('./forgotPassword.component.html')
1111
})
12-
export class ForgotPassword implements OnInit {
12+
export class ForgotPasswordComponent implements OnInit {
1313

1414
form: FormGroup;
1515
submitted = false;

src/app/login/login.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { EmailValidator } from '../email-validator';
99
styles: [require('./login.component.scss')],
1010
template: require('./login.component.html')
1111
})
12-
export class Login implements OnInit {
12+
export class LoginComponent implements OnInit {
1313

1414
form: FormGroup;
1515
submitted = false;

src/app/register/register.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { EmailValidator } from '../email-validator';
99
styles: [require('./register.component.scss')],
1010
template: require('./register.component.html')
1111
})
12-
export class Register implements OnInit {
12+
export class RegisterComponent implements OnInit {
1313

1414
form: FormGroup;
1515
submitted = false;

src/app/set-new-password/setNewPassword.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms'
88
styles: [require('./setNewPassword.component.scss')],
99
template: require('./setNewPassword.component.html')
1010
})
11-
export class SetNewPassword implements OnInit {
11+
export class SetNewPasswordComponent implements OnInit {
1212

1313
form: FormGroup;
1414
submitted = false;

0 commit comments

Comments
 (0)