Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

Commit 700b247

Browse files
committed
fixed source url
1 parent 94d4188 commit 700b247

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app/operators/components/operator/operator.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { OperatorDoc } from '../../../../operator-docs/operator.model';
99
export class OperatorComponent {
1010
@Input() operator: OperatorDoc;
1111

12+
private readonly baseSourceUrl = 'https://github.com/ReactiveX/rxjs/blob/master/src/operators/';
13+
1214
get operatorName() {
1315
return this.operator.name;
1416
}
@@ -41,8 +43,8 @@ export class OperatorComponent {
4143
return this.operator.relatedOperators || [];
4244
}
4345

44-
get sourceCode() {
45-
return `https://github.com/ReactiveX/rxjs/blob/master/src/operators/${this.operatorName}.ts`;
46+
get sourceUrl() {
47+
return `${this.baseSourceUrl}/${this.operatorName}.ts`;
4648
}
4749

4850
get additionalResources() {

0 commit comments

Comments
 (0)