import { Component , OnInit } from '@angular/core' ; import { ActivatedRoute } from '@angular/router' ; import { IProject , ProjectModel } from '@shared/models/index.model' ; /**
 * List my project component
 */ @ Component ( { selector : 'dashboard-list-my-projects' , templateUrl : './list-my-projects.component.html' , } ) export class ListMyProjectsComponent implements OnInit { public projects : IProject [ ] = [ ] ; public title : string = 'My Projects' ; param projectService constructor ( private route ) { } /**
     * Life cycle init method
     */ ngOnInit ( ) { this . route . data . subscribe ( ( data ) => this . projects = data . projects ) ; } }