Started mobile web interface
This commit is contained in:
parent
44dea44cd5
commit
6e98776290
@ -43,6 +43,7 @@ export class HomeComponent implements OnInit, OnDestroy {
|
||||
this.responsiveService.getMobileStatus().subscribe(isMobile => {
|
||||
this.isMobile = isMobile;
|
||||
})
|
||||
console.log(this.isMobile)
|
||||
// this.responsiveService.checkWidth();
|
||||
}
|
||||
|
||||
|
@ -19,12 +19,13 @@ export class ResponsiveService {
|
||||
|
||||
// tslint:disable-next-line:typedef
|
||||
getMobileStatus(): Observable<any> {
|
||||
console.log(this.isMobile)
|
||||
// console.log(this.isMobile)
|
||||
return this.isMobile.asObservable();
|
||||
}
|
||||
|
||||
// tslint:disable-next-line:typedef
|
||||
public checkWidth() {
|
||||
console.log(window.innerWidth)
|
||||
// tslint:disable-next-line:prefer-const
|
||||
if (window.innerWidth <= 768) {
|
||||
this.screenWidth = 'sm';
|
||||
|
Loading…
Reference in New Issue
Block a user