Is it possible to create a Component abstraction on Angular 2?
<p>I want to create a AbstractComponent with initial behavior while being able to override it on child when needed, is it possible? Is it a good practice?</p>

<p>Should look more or less like that:</p>

<pre><code>export abstract class AbstractComponent implements OnInit {

  constructor(authService: AuthService, router: Router) {}

  ngOnInit() {
    if (authService.userNotLoggedInAnymore()) {
      router.navigate(['Login']);
    }
  }

  ...
}
</code></pre>