diff --git a/package.json b/package.json index 8663e2b..dfb6d73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-samples", - "version": "5.4.20", + "version": "6.1.34", "scripts": { "test": "gulp test", "postinstall": "gulp copy", diff --git a/src/app/common/header/header.component.html b/src/app/common/header/header.component.html index 17d9ae2..19395a3 100644 --- a/src/app/common/header/header.component.html +++ b/src/app/common/header/header.component.html @@ -20,6 +20,6 @@ Product Detail - Try it Free + Try it Free \ No newline at end of file diff --git a/src/app/common/header/header.component.ts b/src/app/common/header/header.component.ts index fad8890..3ad8a06 100644 --- a/src/app/common/header/header.component.ts +++ b/src/app/common/header/header.component.ts @@ -39,8 +39,7 @@ export class HeaderComponent { } platformSamplePath = this.getRouterPath(this.platformName, platform, sampleName); const reportPath = routerData.reportRouterPath ? (platformBasePath + '/' + platformSamplePath) : platformSamplePath; - const url: string = location.origin.indexOf('demos.boldreports.com') !== -1 ? '/' : '/demos/'; - window.open(this.document.location.origin + url + data.otherPlatforms[platform] + reportPath, '_self'); + window.open(this.document.location.origin + "/" + data.otherPlatforms[platform] + reportPath, '_self'); } private getRouterPath(curPlatform: string, targetplatform: string, sampleName: string): string { @@ -51,17 +50,9 @@ export class HeaderComponent { if (samePath) { return sampleName; } else { - if (curPlatform.indexOf('asp') !== -1) { return sampleName.split(/(?=[A-Z])/).map((name) => { return name.toLowerCase(); }).join('-'); - - } else { - return sampleName.split(/-/).map((name) => { - return name.charAt(0).toUpperCase() + name.slice(1); - }).join(''); - - } } } } diff --git a/src/app/common/main-content/main-content.component.html b/src/app/common/main-content/main-content.component.html index ea89808..08b2dc0 100644 --- a/src/app/common/main-content/main-content.component.html +++ b/src/app/common/main-content/main-content.component.html @@ -60,20 +60,20 @@