@ngx-extensions/screenfull
A simple wrapper around
screenfull.js for Angular.
Installation
``
bash
npm install @ngx-extensions/screenfull
`
Setup
Import NgxScreenfullModule
into your module
`
typescript
import { NgxScreenfullModule } from '@ngx-extensions/screenfull';
@NgModule({
imports: [NgxScreenfullModule]
})
export class AppModule {}
`
Usage
The most basic use case is to toggle the fullscreen mode through an element´s click event:
`
html
`
_Note: the host element of ngxToggleFullscreen
does not necessarily have to be a