ngx-title

1.0.2 • Public • Published
ngx-title

ngx-title

CodeFactor MIT badge

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

Demo for sleepy type:

demo

Installation

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>

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-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

Contributors

This project exists thanks to all these people 💪 :

License

Everything in this repository is licensed under the MIT License unless otherwise specified.

Copyright (c) 2022 Mateusz Stanczak

Package Sidebar

Install

npm i ngx-title

Weekly Downloads

5

Version

1.0.2

License

MIT

Unpacked Size

10.2 kB

Total Files

14

Last publish

Collaborators

  • matsta25