@angeeks/fullscreen
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Fullscreen

Build Status npm version

A wrapper of screenfull for Angular.

Installation

npm i -P @angeeks/fullscreen

Usage

// app.module.ts
+import { FullscreenModule } from '@angeeks/fullscreen';

@NgModule({
  imports: [
+   FullscreenModule
  ]
})
export class AppComponent {}

// trigger by service
// app.component.ts
import { Fullscreen } from '@angeeks/fullscreen';

class AppComponent {
- constructor() {}
+ constructor(private fullscreen: Fullscreen) {}

+ click(e) {
+   this.fullscreen.toggle(e.target);
+ }
}

// TODO: trigger by directive

Readme

Keywords

Package Sidebar

Install

npm i @angeeks/fullscreen

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

45.9 kB

Total Files

26

Last publish

Collaborators

  • speed.of.light