Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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 BigScreenModule to your AppModule

    import { BigScreenModule } from 'angular-bigscreen';
    
    @NgModule({
    	imports: [
    		BigScreenModule.forRoot()
    	]
    })
    export class AppModule {
    	
    }
    
  3. Import BigScreenService and use it in a component

    import { BigScreenService } from 'angular-bigscreen';
    
    @Component({
    	selector: 'app-root',
    })
    export class AppComponent {
      constructor(private bigScreenService: BigScreenService) {
      }
    }
    

Usage

For example:

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

API

this.bigScreenService.isFullscreen()

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

this.bigScreenService.isEnabled()

Returns a boolean. Checks if fullscreen is enabled.

this.bigScreenService.request(el: ElementRef)

Requests fullscreen on 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.getElement()

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

License

MIT. Copyright (c) Alex.

Keywords

FAQs

Package last updated on 18 Feb 2018

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