diff options
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.ts | 77 |
1 files changed, 0 insertions, 77 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 deleted file mode 100644 index ab443337..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/admin/admin.module.ts +++ /dev/null @@ -1,77 +0,0 @@ - -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 |