2017-07-17 15:11:34 +00:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
import { ActivatedRoute } from '@angular/router';
|
|
|
|
import { MailModel } from './mail.model';
|
|
|
|
import { MailDataService } from './mail-data.service';
|
2017-07-08 16:12:52 +00:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector : 'fuse-mail',
|
|
|
|
templateUrl: './mail.component.html',
|
|
|
|
styleUrls : ['./mail.component.scss']
|
|
|
|
})
|
|
|
|
export class MailComponent implements OnInit
|
|
|
|
{
|
2017-07-16 18:41:01 +00:00
|
|
|
selectedMail: MailModel;
|
2017-07-08 16:12:52 +00:00
|
|
|
|
2017-07-17 15:11:34 +00:00
|
|
|
constructor(
|
|
|
|
private route: ActivatedRoute,
|
|
|
|
private mailDataService: MailDataService
|
|
|
|
)
|
2017-07-08 16:12:52 +00:00
|
|
|
{
|
2017-07-15 15:03:40 +00:00
|
|
|
console.log('mail component inited');
|
2017-07-08 16:12:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ngOnInit()
|
|
|
|
{
|
2017-07-17 15:11:34 +00:00
|
|
|
|
2017-07-08 16:12:52 +00:00
|
|
|
}
|
2017-07-16 18:41:01 +00:00
|
|
|
|
|
|
|
onMailSelect(mail)
|
|
|
|
{
|
|
|
|
this.selectedMail = mail;
|
|
|
|
}
|
2017-07-08 16:12:52 +00:00
|
|
|
}
|