@ng-web-apis/screen-orientation
Version:
A library for declarative use of screen orientation with Angular
23 lines (16 loc) • 462 B
Markdown
#  Screen Orientation API for Angular
## Install
```bash
npm i @ng-web-apis/screen-orientation
```
## Examples
```ts
import {ScreenOrientationService} from '@ng-web-apis/screen-orientation';
// ...
export class Example {
constructor(readonly orientation$: ScreenOrientationService) {}
}
```
```html
<p>{{ orientation$ | async }}</p>
```