Skip to content

Instantly share code, notes, and snippets.

View wojciech-marciniak's full-sized avatar

Wojciech wojciech-marciniak

View GitHub Profile
@abarrak
abarrak / app.component.ts
Last active September 22, 2020 14:21 — forked from pniel-cohen/app.module.ts
Dynamically set page title based on active route in Angular 6+ .. (Corrected & Simplified Version)
import { Component, OnInit } from '@angular/core';
import { TitleService } from './shared/title/title.service';
@Component({
selector: 'ny-app',
templateUrl: './app.component.html',
styles: [],
})
export class AppComponent implements OnInit {