Socket
Socket
Sign inDemoInstall

angular-bigscreen

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-bigscreen

An Angular service to quickly use the HTML5 fullscreen API


Version published
Weekly downloads
49
decreased by-33.78%
Maintainers
1
Weekly downloads
 
Created
Source

angular-bigscreen

NPM Travis Dependency Status

AngularBigScreen is an Angular service to quickly use the HTML5 fullscreen API.

Install

  1. Install angular-bigscreen node module through npm:

    $ npm install angular-bigscreen --save
    
  2. Import BigScreenService to your AppModule

import { BigScreenService } from 'angular-bigscreen';

@NgModule({
  providers: [ BigScreenService ]
})
export class AppModule {
  constructor(private bigScreenService: BigScreenService) {
  }
}

Usage

For example:

// Request fullscreen
this.bigScreenService.request(this.elementRed.nativeElement);

API

this.bigScreenService.isFullscreen()

Returns a boolean. True if fullscreen is been used, else false.

this.bigScreenService.request(el: ElementRef)

Requests fullscreen in an ElementRef.

this.bigScreenService.exit()

Exits from fullscreen.

this.bigScreenService.onChange(callback: any)

This is a wrapper for document.fullscreenchange.

this.bigScreenService.onError(callback: any)

This is a wrapper for document.fullscreenerror.

this.bigScreenService.element()

Returns an element. This is a wrapper for document.fullscreenElement.

this.bigScreenService.enabled()

Returns a boolean. Checks if fullscreen is enabled.

License

MIT. Copyright (c) Alex.

Keywords

FAQs

Package last updated on 15 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc