@ng-web-apis/screen-orientation
Version:
A library for declarative use of screen orientation with Angular
24 lines (17 loc) • 508 B
Markdown
#  Screen Orientation API for Angular
## Install
```bash
npm i @ng-web-apis/screen-orientation
```
## Examples
```ts
import {inject} from '@angular/core';
import {WaScreenOrientationService} from '@ng-web-apis/screen-orientation';
// ...
export class Example {
protected readonly orientation$ = inject(WaScreenOrientationService);
}
```
```html
<p>{{ orientation$ | async }}</p>
```