fuse-angular/src/app/main/apps/mail/mail.component.ts

33 lines
677 B
TypeScript
Raw Normal View History

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';
@Component({
selector : 'fuse-mail',
templateUrl: './mail.component.html',
styleUrls : ['./mail.component.scss']
})
export class MailComponent implements OnInit
{
selectedMail: MailModel;
2017-07-17 15:11:34 +00:00
constructor(
private route: ActivatedRoute,
private mailDataService: MailDataService
)
{
2017-07-15 15:03:40 +00:00
console.log('mail component inited');
}
ngOnInit()
{
2017-07-17 15:11:34 +00:00
}
onMailSelect(mail)
{
this.selectedMail = mail;
}
}