Ngx-title is small library that can enhance your html title in Angular based web page when the browser tab is not active.
If you are interested of contributing, go to CONTRIBUTING to make this project more awesome! 😎
Demo for sleepy type:
Install ngx-title
from npm
:
npm install ngx-title --save
Add package to NgModule imports:
import { NgxTitleModule } from "ngx-title";
@NgModule({
...
imports: [NgxTitleModule,...]
...
})
Add selected component to your page:
<ngx-title [type]="'sleepy'"></ngx-title>
All types:
type | text | usage |
---|---|---|
sleepy | (-,-)Zzzz... | typescript <ngx-title [type]="'sleepy'"></ngx-title> |
come_back | Come back! | typescript <ngx-title [type]="'come_back'"></ngx-title> |
waiting | Waiting... | typescript <ngx-title [type]="'waiting'"></ngx-title> |
here | HERE! | typescript <ngx-title [type]="'here'"></ngx-title> |
custom | Custom text! | typescript <ngx-title [type]="'custom'" [customText]="'Custom text!'"></ngx-title |
Want to file a bug, contribute some code, or improve documentation? Excellent!
Read up on guidelines for CONTRIBUTING.
First time:
git clone [email protected]:matsta25/ngx-title.git
cd ngx-title
Make changes in lib and build (location /ngx-title/projects/ngx-title
):
ng build ngx-title
Run workspace (location /ngx-title
) app and see results:
npm run start
This project exists thanks to all these people 💪 :
Everything in this repository is licensed under the MIT License unless otherwise specified.
Copyright (c) 2022