+ +

OK

+ + + diff --git a/src/app/pages/profile/profile.component.scss b/src/app/user-profile/pages/profile/profile.component.scss similarity index 100% rename from src/app/pages/profile/profile.component.scss rename to src/app/user-profile/pages/profile/profile.component.scss diff --git a/src/app/pages/profile/profile.component.ts b/src/app/user-profile/pages/profile/profile.component.ts similarity index 71% rename from src/app/pages/profile/profile.component.ts rename to src/app/user-profile/pages/profile/profile.component.ts index b144bc9..b7f7018 100644 --- a/src/app/pages/profile/profile.component.ts +++ b/src/app/user-profile/pages/profile/profile.component.ts @@ -1,21 +1,18 @@ -import { Component, OnInit } from '@angular/core'; -import { CartService } from 'src/app/services/cart.service'; +import { Component } from '@angular/core'; import { ScreenService } from 'src/app/services/screen.service'; @Component({ - selector: 'profile', + selector: 'app-profile', templateUrl: './profile.component.html', styleUrls: ['./profile.component.scss'], }) -export class ProfileComponent implements OnInit { +export class ProfileComponent { public password: string = ''; public email: string = ''; public remember: boolean = false; constructor(private displayService: ScreenService) {} - ngOnInit(): void {} - screenWidth() { return this.displayService.getScreenSize(); } diff --git a/src/app/user-profile/user-profile.module.ts b/src/app/user-profile/user-profile.module.ts new file mode 100644 index 0000000..e04a285 --- /dev/null +++ b/src/app/user-profile/user-profile.module.ts @@ -0,0 +1,38 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { ProfileComponent } from './pages/profile/profile.component'; +import { RouterModule, Routes } from '@angular/router'; +import { + VCLFormControlGroupModule, + VCLInputModule, + VCLPasswordInputModule, + VCLRadioButtonModule, +} from '@vcl/ng-vcl'; +import { SharedModule } from '../shared/shared.module'; + +const routes: Routes = [ + { + path: '', + component: ProfileComponent, + }, +]; + +const vclModules = [ + VCLInputModule, + VCLPasswordInputModule, + VCLRadioButtonModule, + VCLFormControlGroupModule, + // VCLIconModule, + // VCLIcogramModule, +]; + +@NgModule({ + declarations: [ProfileComponent], + imports: [ + CommonModule, + ...vclModules, + SharedModule, + RouterModule.forChild(routes), + ], +}) +export class UserProfileModule {}