import {Component} from '@angular/core';
import {MovieComponent} from './movie.component';
import {Actor} from './actor.model';
<button type="button" (click)="changeActorProperties()">
<button type="button" (click)="changeActorObject()">
<app-movie [title]="title" [actor]="actor"></app-movie>`
export class AppComponent {
slogan = 'Just movie information';
actor = new Actor('Arnold', 'Schwarzenegger');
changeActorProperties() {
this.actor.firstName = 'Nicholas';
this.actor.lastName = 'Cage';
this.actor = new Actor('Bruce', 'Willis');