import { Component , Input , OnChanges , SimpleChanges } from '@angular/core' ; import { IProject } from '../../models/index.model' ; /**
 * Private public project component
 */ @ Component ( { selector : 'dashboard-projects-private-public' , templateUrl : './private-public-project.component.html' , styleUrls : [ './private-public-project.component.scss' ] , } ) export class PrivatePublicProjectComponent implements OnChanges { @ Input ( ) projects : IProject [ ] = [ ] ; @ Input ( ) title : string ; @ Input ( ) showTitle : boolean = false ; ngOnChanges ( changes ) { if ( changes . projects ) { this . projects = changes . projects . currentValue ; } } }