Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

ngx-page-title

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

ngx-page-title

Angular page title - Here's a non-recursive solution that also fixes the replication of titles in case of path-less or component-less nested routes.

unpublished
latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source
STAR

Dynamic page title for browsers.

String operations for angular projects

Preview demo

This preview was generated with Stackblitz

Angular version

This library was generated with Angular CLI version 9.1.9.

Code integration

To use this package as a service npm i ngx-page-title install this on the root angular project .

Note: Don't forget to run this commend npm i ngx-page-title on root folder or else it will throw error.

Import

Import the module on your app.module.ts file as follow.

import { NgxPageTitleModule } from "ngx-page-title";

Then import the module as follow on imports array

NgxPageTitleModule

In your constructor of a required component import the service as follow

import { NgxPageTitleService } from 'ngx-page-title';

Add the dependency on construtor as follows

constructor(private title: NgxPageTitleService) {

this.title.setTitle("title goes here")

}

Using

After importing this library with npm install ngx-page-title, go to the component which is declared under app.module.ts and integrate as below. use it on any component or else declare it on app.component.ts for enabling it global to application.

Keywords

angular

FAQs

Package last updated on 04 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts