@ngx-cocktail/title
TypeScript icon, indicating that this package has built-in type declarations

14.0.1 • Public • Published

@ngx-cocktail/title

The library contains code for title feature.

The feature sets the title of a current HTML document. Underhood, it injects Title from '@angular/platform-browser' and set your custom title.

Notes:

  • If there are parent and nested components with TitleFeature, it will use nested.
  • The title should be handled manually defining them on components

TODO:

  • Add opportunity to set default title for application

Warning! This feature is experimental and can include known and undiscovered errors.

GitHub issues GitHub forks GitHub stars GitHub license

Support

What's New

  • Angular 14 support 🥳

Compatibility

Angular 14
>=v14.0.1

Installation

    npm install @ngx-cocktail/common @ngx-cocktail/title

Usage

    import { Features } from '@ngx-cocktail/common';
    import { Title } from '@ngx-cocktail/title';

    @Features([TitleFeature('My Website: My Title')])
    export class AppComponent implements OnInit {}

Publishing

  1. Commit & push your changes
  2. Update a version in package.json
  3. Run npm run build:title
  4. Navigate to dist/title
  5. Run npm publish

Package Sidebar

Install

npm i @ngx-cocktail/title

Weekly Downloads

0

Version

14.0.1

License

MIT

Unpacked Size

12.7 kB

Total Files

13

Last publish

Collaborators

  • kostetskyroma