ngx-verify-is-server-side
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

NgxVerifyIsServerSide

A simple package to make a verification if is Server Side and optmize the server responsabiliites.

Prerequisites

Angualr version: ^13.0.0

How to Use

  1. Install
npm i ngx-verify-is-server-side
  1. Import the service in your component.ts file.
 constructor(
      private _verifyServerSide: NgxVerifyIsServerSideService
  ) { }
  1. Make the verification
  yourMethod(): void {

    if(this._verifyServerSide.isServerSide){

      return;
    }

    ...
  }

Readme

Keywords

none

Package Sidebar

Install

npm i ngx-verify-is-server-side

Weekly Downloads

1

Version

0.0.7

License

none

Unpacked Size

12.1 kB

Total Files

12

Last publish

Collaborators

  • renanferro