Base Component
// ... import { Router } from '@angular/router'; constructor(public router: Router) { }
Take note of the accessibility level. It’s important to keep this declaration “public” due to the inheritance.
Inherited Components
export class PageoneComponent extends BaseComponent implements OnInit { // ... }
constructor(public router: Router) { super(router); }
References
https://alligator.io/angular/component-inheritance/