import { Component , OnInit } from '@angular/core' ; import { Router } from '@angular/router' ; import { Session } from '../../services/session' ; /**
 * Container for default feed - contains page layout and sidebar.
 */ @ Component ( { selector : 'm-defaultFeed__container' , templateUrl : 'container.component.html' , styleUrls : [ './container.component.ng.scss' ] , } ) export class DefaultFeedContainerComponent implements OnInit { constructor ( private router , private session ) { } public ngOnInit ( ) { if ( this . session . isLoggedIn ( ) ) { this . router . navigate ( [ '/newsfeed' ] ) ; return ; } } }