canti primo tag

This commit is contained in:
David Frassi
2026-05-16 17:24:59 +02:00
commit 0c33fc6fcf
106 changed files with 28210 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { Injectable, signal } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class ConnectivityService {
public isOnline = signal<boolean>(navigator.onLine);
constructor() {
window.addEventListener('online', () => this.isOnline.set(true));
window.addEventListener('offline', () => this.isOnline.set(false));
}
}