Skip to content

Commit

Permalink
fix: set rootUrl during construction of table of contents (angular#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephperrott authored and jelbourn committed May 3, 2018
1 parent c4ab3b9 commit f964406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/shared/table-of-contents/table-of-contents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class TableOfContents implements OnInit {
@Input() container: string;
@Input() headerSelectors = '.docs-markdown-h3,.docs-markdown-h4';

_rootUrl: string;
_rootUrl = this._router.url.split('#')[0];
private _scrollContainer: any;
private _destroyed = new Subject();
private _urlFragment = '';
Expand Down

0 comments on commit f964406

Please sign in to comment.