fcff1d58e0db3ec36acbf46d9affb3a63ee6427a
[appc/cdt.git] / src / app / app.module.ts
1 /*
2 ============LICENSE_START==========================================
3 ===================================================================
4 Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
5
6 Copyright (C) 2018 IBM Intellectual Property. All rights reserved.
7 ===================================================================
8 Copyright (C) 2018 IBM.
9 ===================================================================
10 Unless otherwise specified, all software contained herein is licensed
11 under the Apache License, Version 2.0 (the License);
12 you may not use this software except in compliance with the License.
13 You may obtain a copy of the License at
14
15     http://www.apache.org/licenses/LICENSE-2.0
16
17 Unless required by applicable law or agreed to in writing, software
18 distributed under the License is distributed on an "AS IS" BASIS,
19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 See the License for the specific language governing permissions and
21 limitations under the License.
22 ============LICENSE_END============================================
23 */
24
25 import { BrowserModule } from '@angular/platform-browser';
26 import { NgModule } from '@angular/core';
27 import { FormsModule } from '@angular/forms';
28 import { SimpleNotificationsModule } from 'angular2-notifications';
29 import { BootstrapModalModule } from 'ng2-bootstrap-modal';
30 import { HomeModule } from './home/home.module';
31 import { AppComponent } from './app.component';
32 import { AppRoutingModule } from './app.routing';
33 import { SharedModule } from './shared/shared.module';
34 import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
35 import { HashLocationStrategy, LocationStrategy } from '@angular/common';
36 import { NoopAnimationsModule } from '@angular/platform-browser/animations';
37 import { RouterModule } from '@angular/router';
38 import { TestComponent } from './test/test.component';
39 import { AboutUsComponent } from './about-us/aboutus.component';
40 import { NgProgressModule } from 'ngx-progressbar';
41 import { LoginGuardService } from './vnfs/LoginGuardService/Login-guard-service';
42 import { ConfirmComponent } from './shared/confirmModal/confirm.component';
43 import { NgxSpinnerModule } from 'ngx-spinner';
44
45 @NgModule({
46     declarations: [AppComponent, TestComponent, AboutUsComponent, ConfirmComponent],
47     imports: [BrowserModule, FormsModule, HomeModule, SharedModule.forRoot(),
48         NgbModule.forRoot(), NoopAnimationsModule, AppRoutingModule, SimpleNotificationsModule, NgProgressModule, BootstrapModalModule, NgxSpinnerModule],
49     exports: [RouterModule],
50     providers: [{ provide: LocationStrategy, useClass: HashLocationStrategy }, LoginGuardService],
51     entryComponents: [ConfirmComponent],
52
53     bootstrap: [AppComponent]
54 })
55
56 export class AppModule {
57 }