Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Component } from '@angular/core';
import { SnapcastService } from './services/snapcast.service';

@Component({
selector: 'app-root',
Expand All @@ -9,9 +8,7 @@ import { SnapcastService } from './services/snapcast.service';
})
export class AppComponent {
constructor(
private snapcastService: SnapcastService
) {
this.snapcastService.connect();

}
}
12 changes: 8 additions & 4 deletions src/app/tabs/tabs.page.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
import { Component, ElementRef, ViewChild } from '@angular/core';
import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { GestureController } from '@ionic/angular';
import { SnapcastService } from '../services/snapcast.service';

@Component({
selector: 'app-tabs',
templateUrl: 'tabs.page.html',
styleUrls: ['tabs.page.scss'],
standalone: false,
})
export class TabsPage {
export class TabsPage implements OnInit, AfterViewInit {

isModalOpen = true;



constructor(private gestureCtrl: GestureController) {}
constructor(private snapcastService: SnapcastService) {}


ngOnInit(): void {
this.snapcastService.connect();

}

ngAfterViewInit() {
}
Expand Down