summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/admin/admin.module.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/admin/admin.module.ts')
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/admin/admin.module.ts77
1 files changed, 77 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/admin/admin.module.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/admin/admin.module.ts
new file mode 100644
index 00000000..ab443337
--- /dev/null
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/admin/admin.module.ts
@@ -0,0 +1,77 @@
+
+import { CommonModule } from '@angular/common';
+import { BrowserModule } from '@angular/platform-browser';
+import { NgModule } from '@angular/core';
+import { AppRoutingModule } from '../app-routing.module';
+
+import { UpgradeModule, downgradeComponent} from '@angular/upgrade/static';
+import { HttpClientModule } from '@angular/common/http';
+import { RouterModule, UrlHandlingStrategy } from '@angular/router';
+import { APP_BASE_HREF } from '@angular/common';
+
+export class CustomHandlingStrategy implements UrlHandlingStrategy {
+ shouldProcessUrl(url) {
+ console.log('url --->>> ' + url.toString());
+ var str = "ng6";
+ if (url.toString().search(str) == -1 )
+ return false;
+ else
+ return true;
+ }
+
+ extract(url) { return url; }
+ merge(url, whole) { return url; }
+}
+
+
+//declare var angular: any;
+
+/*
+declare var angular: angular.IAngularStatic;
+
+angular.module('abs')
+ .directive(
+ 'appusage',
+ downgradeComponent({component: UsageComponent}) as angular.IDirectiveFactory
+);
+
+angular.module('abs')
+ .directive(
+ 'app-hello',
+ downgradeComponent({component: HelloComponent}) as angular.IDirectiveFactory
+);
+*/
+
+@NgModule({
+ declarations: [
+ ],
+ imports: [
+ CommonModule,
+ BrowserModule,
+ AppRoutingModule,
+ UpgradeModule,
+ HttpClientModule,
+ RouterModule,
+ /*
+ RouterModule.forRoot([
+ {
+ path: 'ng6/usage_list',
+ component: UsageComponent
+ }
+ ],
+ {
+ useHash: true,
+ enableTracing: true
+ }
+ )*/
+ ],
+
+ entryComponents: [
+ ],
+ providers: [
+ { provide: UrlHandlingStrategy, useClass: CustomHandlingStrategy },
+ { provide: APP_BASE_HREF, useValue: '/' + (window.location.pathname.split('/')[1] || '') }
+ ]
+})
+
+export class AdminModule { } \ No newline at end of file