Fix code style
parent
f8db29408f
commit
d3779de03f
|
@ -4,7 +4,7 @@ import {LoginService} from './services/app-user-service/login-service';
|
|||
import {PromotionService} from './services/army-management/promotion.service';
|
||||
import {AwardingService} from './services/army-management/awarding.service';
|
||||
import {RouteConfig} from './app.config';
|
||||
import {DOCUMENT} from "@angular/common";
|
||||
import {DOCUMENT} from '@angular/common';
|
||||
|
||||
declare function require(url: string);
|
||||
|
||||
|
@ -38,13 +38,13 @@ export class AppComponent implements OnInit {
|
|||
this.loading = false;
|
||||
// scroll to top on route from army overview to user detail and back
|
||||
if (router.url.includes('overview')) {
|
||||
this.scrollToTop()
|
||||
this.scrollToTop();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@HostListener("window:scroll", [])
|
||||
@HostListener('window:scroll', [])
|
||||
onWindowScroll() {
|
||||
this.scrollTopVisible = document.body.scrollTop > this.scrollBtnVisibleVal
|
||||
|| document.documentElement.scrollTop > this.scrollBtnVisibleVal;
|
||||
|
|
Loading…
Reference in New Issue