Managing Page Title in Angular

page title angular

Managing page title in Angular is quite straightforward by using the Title service provided by Angular. It’s as simple as calling the setTitle function with the new title. Following is an code excerpt from Angular docs public constructor(private titleService: Title ) { } public setTitle( newTitle: string) { this.titleService.setTitle( newTitle […]

Using Pipes in TypeScript (Angular)

angular typescript pipe

While it’s quite easy to use a pipe in Angular HTML code. In the following case, we are using a translate pipe. <h2>{{ ‘Hello’ | translate }}</h2> But using the same in TypeScript comes with some additional code setup.The setup can be divided into two distinct ways.1. Pipe without any […]

Working with Params in Angular

angular params

While working with routes in angular, sometimes we might need to fetch some information from the url that shows up in the browser. Params, QueryParams and Fragments are the bits of information that can be fetched from the route url. This is one part of the 3 part series of […]

AngularSutra

angular

SECTION 1 9 – What is TypeScript Its a super-set of vanilla JavaScript. It has more features like Types, Classes, Interfaces, etc. But as because the browser does not support Typescript, it is first compiled to JavaScript via the CLI prior running in the browser. 11 – Adding Bootstrap to […]