Fix anchor links on new ng faq template
This commit is contained in:
parent
e24efe7528
commit
0031fbf886
@ -36,6 +36,7 @@ export class ApiDocsComponent implements OnInit, AfterViewInit {
|
|||||||
|
|
||||||
ngAfterViewInit() {
|
ngAfterViewInit() {
|
||||||
const that = this;
|
const that = this;
|
||||||
|
this.faqTemplates.forEach((x) => this.dict[x.type] = x.template);
|
||||||
setTimeout( () => {
|
setTimeout( () => {
|
||||||
if( this.route.snapshot.fragment ) {
|
if( this.route.snapshot.fragment ) {
|
||||||
this.openEndpointContainer( this.route.snapshot.fragment );
|
this.openEndpointContainer( this.route.snapshot.fragment );
|
||||||
@ -44,7 +45,6 @@ export class ApiDocsComponent implements OnInit, AfterViewInit {
|
|||||||
window.addEventListener('scroll', function() {
|
window.addEventListener('scroll', function() {
|
||||||
that.desktopDocsNavPosition = ( window.pageYOffset > 182 ) ? "fixed" : "relative";
|
that.desktopDocsNavPosition = ( window.pageYOffset > 182 ) ? "fixed" : "relative";
|
||||||
}, { passive: true} );
|
}, { passive: true} );
|
||||||
this.faqTemplates.forEach((x) => this.dict[x.type] = x.template);
|
|
||||||
}, 1 );
|
}, 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user