1.0.0 • Published 1 year ago

@billnice/environment-banner v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Environment Banner Module

This is an Angular module for displaying an environment banner in your application. The banner is displayed in the center of the page, and the environment and color are customizable.

Installation

To install this module in your Angular project, run the following command:

npm i @billnice/environment-banner

Usage

To use the EnvironmentBannerModule in your Angular project, you need to import it into your app module:

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { EnvironmentBannerModule } from 'environment-banner';

import { AppComponent } from './app.component';

@NgModule({
  imports: [BrowserModule, FormsModule, EnvironmentBannerModule],
  declarations: [AppComponent],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once you have imported the EnvironmentBannerModule, you can use the environment-banner component in your HTML template:

<environment-banner 
[environment]="'Production'" 
[backgroundColor]="'#FF0000'"
[textColor]="'#FFFFFF'"
>
</environment-banner>
1.0.0

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago