2 Copyright 2020 TATA ELXSI
4 Licensed under the Apache License, Version 2.0 (the 'License');
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
21 import { CommonModule } from '@angular/common';
22 import { HttpClientModule } from '@angular/common/http';
23 import { NgModule } from '@angular/core';
24 import { FlexLayoutModule } from '@angular/flex-layout';
25 import { FormsModule } from '@angular/forms';
26 import { ReactiveFormsModule } from '@angular/forms';
27 import { RouterModule, Routes } from '@angular/router';
28 import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
29 import { NgSelectModule } from '@ng-select/ng-select';
30 import { TranslateModule } from '@ngx-translate/core';
31 import { ChangePasswordModule } from 'ChangePasswordModule';
32 import { DataService } from 'DataService';
33 import { LoaderModule } from 'LoaderModule';
34 import { Ng2SmartTableModule } from 'ng2-smart-table';
35 import { PagePerRowModule } from 'PagePerRowModule';
36 import { PageReloadModule } from 'PageReloadModule';
37 import { ProjectRoleComponent } from 'ProjectRoleComponent';
38 import { UserDetailsComponent } from 'UserDetailsComponent';
39 import { UsersComponent } from 'UsersComponent';
41 /** const values for dashboard Routes */
42 const routes: Routes = [
45 component: UsersComponent,
50 breadcrumb: [{ title: 'PAGE.DASHBOARD.DASHBOARD', url: '/' }, { title: 'PAGE.DASHBOARD.USERS', url: null }]
52 component: UserDetailsComponent
59 * Creating @NgModule component for Modules
62 imports: [ReactiveFormsModule, FormsModule, CommonModule, HttpClientModule, Ng2SmartTableModule, TranslateModule,
63 FlexLayoutModule, NgSelectModule, NgbModule, RouterModule.forChild(routes), PagePerRowModule, LoaderModule,
64 PageReloadModule, ChangePasswordModule],
65 declarations: [UsersComponent, UserDetailsComponent, ProjectRoleComponent],
66 providers: [DataService],
67 entryComponents: [ProjectRoleComponent]
69 /** Exporting a class @exports UsersModule */
70 export class UsersModule {
72 * Lifecyle Hooks the trigger before component is instantiate
74 public ngOnInit(): void {