mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-18 14:22:35 +00:00
28 lines
662 B
TypeScript
28 lines
662 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import { fuseAnimations } from '../../../../../../core/animations';
|
|
import { ChatService } from '../../chat.service';
|
|
|
|
@Component({
|
|
selector : 'fuse-chat-left-sidenav',
|
|
templateUrl: './left.component.html',
|
|
styleUrls : ['./left.component.scss'],
|
|
animations : fuseAnimations
|
|
})
|
|
export class FuseChatLeftSidenavComponent implements OnInit
|
|
{
|
|
view: string;
|
|
|
|
constructor(private chatService: ChatService)
|
|
{
|
|
this.view = 'chats';
|
|
}
|
|
|
|
ngOnInit()
|
|
{
|
|
this.chatService.onLeftSidenavViewChanged.subscribe(view => {
|
|
this.view = view;
|
|
});
|
|
}
|
|
|
|
}
|