14.0.1 • Published 3 years ago
@ngx-cocktail/title v14.0.1
@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.
What's New
- Angular 14 support 🥳
Compatibility
| Angular 14 |
|---|
>=v14.0.1 |
Installation
npm install @ngx-cocktail/common @ngx-cocktail/titleUsage
import { Features } from '@ngx-cocktail/common';
import { Title } from '@ngx-cocktail/title';
@Features([TitleFeature('My Website: My Title')])
export class AppComponent implements OnInit {}Publishing
- Commit & push your changes
- Update a version in package.json
- Run
npm run build:title - Navigate to
dist/title - Run
npm publish
14.0.1
3 years ago