14.0.1 • Published 2 years ago

@ngx-cocktail/title v14.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@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