Merge "Add code for data format webtool"
[dcaegen2/platform/cli.git] / dcaedftool / src / app / app.module.ts
1 // org.onap.dcae
2 // ============LICENSE_START====================================================
3 // Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
4 // =============================================================================
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 // ============LICENSE_END======================================================
17 //
18 // ECOMP is a trademark and service mark of AT&T Intellectual Property.
19 import { NgModule } from '@angular/core';
20 import { BrowserModule } from '@angular/platform-browser';
21 import {HttpModule} from '@angular/http';  // for future
22 import {FormsModule, ReactiveFormsModule} from '@angular/forms'; // for future
23 import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; // for future
24 import { MaterialModule } from '@angular/material';
25 import { FlexLayoutModule } from '@angular/flex-layout';
26 import { RouterModule, Routes } from '@angular/router';
27
28 import 'ajv';
29 import 'hammerjs';
30
31 import { AppComponent } from './app.component';
32 import { DFSchemaComponent } from './df-schema.component';
33 import { DFJSONInputComponent } from './df-jsoninput.component';
34 import { DFControlComponent } from './df-control.component';
35 import {ValidateMetaSchemaService} from './validate-metaschema.service';
36 import {ValidateJSONService} from './validate-json.service';
37 import {MetaSchemaService} from './metaschema.service';
38
39 const dfroutes: Routes = [
40   { path: '', redirectTo: 'schemaval', pathMatch: 'full' },
41   { path: 'schemaval',  component: DFSchemaComponent },
42   { path: 'jsoninput',  component: DFJSONInputComponent },
43
44 ];
45 @NgModule({
46   imports:      [  BrowserModule,
47     BrowserAnimationsModule,
48     FormsModule,
49     HttpModule,
50     ReactiveFormsModule,
51     FlexLayoutModule,
52     RouterModule.forRoot(dfroutes),
53     MaterialModule,
54     ],
55   declarations: [ AppComponent,
56                   DFSchemaComponent,
57                   DFJSONInputComponent,
58                   DFControlComponent
59                  ],
60  providers: [
61   ValidateMetaSchemaService,
62   ValidateJSONService,
63   MetaSchemaService
64 ],
65   bootstrap:    [ AppComponent ]
66 })
67 export class AppModule { }