Socket
Book a DemoInstallSign in
Socket

ng-screen-lock

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-screen-lock

```shell script yarn add ng-scrren-lock ```

1.0.2
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

GitHub license npm package GitHub Workflow Status
ng-screen-lock is a beautiful component based on angular 2+,provide lock screen ui like windows or MacOS,you can check this demo to preview.

Installation

yarn add ng-scrren-lock

or

npm install ng-screen-lock

Usage

You should import ScreenLockModule into your application like this:

imports: [
  ScreenLockModule,
  // other modules you want import...
];

we provide two modes of lock screen:

  • For panel mode, you can use ScreenLockComponent directly like this:
@Component({
  template: `
    <screen-lock [password]="'123456'" [(lock)]="lock">
      <p>The scrren will be locked if the lock property become true</p>
    </screen-lock>
  `,
})
class TestScreenLockComponent {
  lock = false;
}
@Component({
  template: `
    <button  (click)="lockScreen()">
       <p>click to lock with full screen mode</p>
    </button>
`,
})
class TestScreenLockServiceComponent {
  constructor(private screenLock: ScreenLockService) {}

  lockScreen(){
    this.screenLock.lock({ password: '123456' };
  }
}

FAQs

Package last updated on 30 Nov 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.