ngx-title v1.0.2
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! :sunglasses:
Demo
Demo for sleepy type:
Installation
Install ngx-title from npm:
npm install ngx-title --saveAdd package to NgModule imports:
import { NgxTitleModule } from "ngx-title";
@NgModule({
...
imports: [NgxTitleModule,...]
...
})Add selected component to your page:
<ngx-title [type]="'sleepy'"></ngx-title>Docs
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 |
Contributing
Want to file a bug, contribute some code, or improve documentation? Excellent!
Read up on guidelines for CONTRIBUTING.
How to build lib for development
First time:
git clone git@github.com:matsta25/ngx-title.git
cd ngx-titleMake changes in lib and build (location /ngx-title/projects/ngx-title):
ng build ngx-titleRun workspace (location /ngx-title) app and see results:
npm run startContributors
This project exists thanks to all these people :muscle: :
License
Everything in this repository is licensed under the MIT License unless otherwise specified.
Copyright (c) 2022 Mateusz Stanczak