blob: 22bbc27d7f35be5e98aaa0470046f0e002dc4a0f [file] [log] [blame]
kumaran.m3b4814a2020-05-01 19:48:54 +05301/*
2 Copyright 2020 TATA ELXSI
3
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
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
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.
15
16 Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17*/
18/**
19 * @file SDN Controller module.
20 */
21import { CommonModule } from '@angular/common';
22import { HttpClientModule } from '@angular/common/http';
23import { NgModule } from '@angular/core';
24import { FlexLayoutModule } from '@angular/flex-layout';
25import { FormsModule } from '@angular/forms';
26import { ReactiveFormsModule } from '@angular/forms';
27import { RouterModule, Routes } from '@angular/router';
28import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
29import { NgSelectModule } from '@ng-select/ng-select';
30import { TranslateModule } from '@ngx-translate/core';
31import { DataService } from 'DataService';
32import { LoaderModule } from 'LoaderModule';
33import { Ng2SmartTableModule } from 'ng2-smart-table';
34import { PagePerRowModule } from 'PagePerRowModule';
35import { PageReloadModule } from 'PageReloadModule';
36import { ProjectCreateUpdateComponent } from 'ProjectCreateUpdate';
37import { ProjectsComponent } from 'ProjectsComponent';
38
39/**
40 * configures routers
41 */
42const routes: Routes = [
43 {
44 path: '',
45 data: {
46 breadcrumb: [{ title: 'PAGE.DASHBOARD.DASHBOARD', url: '/' }, { title: 'PAGE.DASHBOARD.PROJECTS', url: null }]
47 },
48 component: ProjectsComponent
49 }
50];
51
52/**
53 * Creating @NgModule component for Modules
54 */
kumaran.m3b4814a2020-05-01 19:48:54 +053055@NgModule({
56 imports: [
57 FormsModule,
58 CommonModule,
59 HttpClientModule,
60 Ng2SmartTableModule,
61 FlexLayoutModule,
62 TranslateModule,
63 RouterModule.forChild(routes),
64 NgbModule,
65 PagePerRowModule,
66 ReactiveFormsModule,
67 LoaderModule,
68 PageReloadModule,
69 NgSelectModule
70 ],
71 declarations: [
72 ProjectsComponent,
73 ProjectCreateUpdateComponent
74 ],
75 providers: [
76 DataService
kumaran.m3b4814a2020-05-01 19:48:54 +053077 ]
78})
79/** Exporting a class @exports ProjectsModule */
80export class ProjectsModule {
81 // empty module
82}