Browse Source

Update Internet-Connection-Service.md

pull/17054/head
Sinan Öztürk 3 years ago
committed by GitHub
parent
commit
42cb9293e2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      docs/en/UI/Angular/Internet-Connection-Service.md

4
docs/en/UI/Angular/Internet-Connection-Service.md

@ -14,14 +14,14 @@ When you inject InternetConnectionService you can get the current internet statu
**You can get via signal**
```ts
class someComponent{
class SomeComponent{
internetConnectionService = inject(InternetConnectionService);
isOnline = this.internetConnectionService.networkStatus
}
```
**or you can get as observable**
```ts
class someComponent{
class SomeComponent{
internetConnectionService = inject(InternetConnectionService);
isOnline = this.internetConnectionService.networkStatus$
}

Loading…
Cancel
Save