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)
22 import { CommonModule } from '@angular/common';
23 import { HttpClientModule } from '@angular/common/http';
24 import { NgModule } from '@angular/core';
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 { TranslateModule } from '@ngx-translate/core';
30 import { LoaderModule } from 'LoaderModule';
31 import { Ng2SmartTableModule } from 'ng2-smart-table';
32 import { PagePerRowModule } from 'PagePerRowModule';
33 import { PageReloadModule } from 'PageReloadModule';
34 import { RolesComponent } from 'Roles';
35 import { RolesActionComponent } from 'RolesAction';
36 import { RolesCreateEditComponent } from 'RolesCreateEdit';
37 import { RolesDetailsComponent } from 'RolesDetails';
39 /** const values for Roles Routes */
40 const routes: Routes = [
43 component: RolesComponent,
48 breadcrumb: [{ title: 'PAGE.DASHBOARD.DASHBOARD', url: '/' }, { title: 'ROLES', url: null }]
50 component: RolesDetailsComponent
55 breadcrumb: [{ title: 'PAGE.DASHBOARD.DASHBOARD', url: '/' }, { title: 'ROLES', url: '/roles/details' },
56 { title: 'PAGE.ROLES.CREATEROLE', url: null }]
58 component: RolesCreateEditComponent
63 breadcrumb: [{ title: 'PAGE.DASHBOARD.DASHBOARD', url: '/' }, { title: 'ROLES', url: '/roles/details' },
64 { title: '{id}', url: null }]
66 component: RolesCreateEditComponent
72 * An NgModule is a class adorned with the @NgModule decorator function.
73 * @NgModule takes a metadata object that tells Angular how to compile and run module code.
76 imports: [FormsModule, ReactiveFormsModule, CommonModule, HttpClientModule, TranslateModule,
77 RouterModule.forChild(routes), NgbModule, PagePerRowModule, Ng2SmartTableModule, LoaderModule, PageReloadModule],
78 declarations: [RolesComponent, RolesDetailsComponent, RolesActionComponent, RolesCreateEditComponent],
79 entryComponents: [RolesActionComponent]
82 * AppModule is the Root module for application
84 export class RolesModule {
85 /** Variables declared to avoid state-less class */
86 private rolesModule: string;