Angular2: Passing an object to bind event from parent to child
问题 The binding works fine for title, subtitle, button.icon and button.name but not for button.action parent.component.html <app-title [title]="title" [subtitle]="subtitle" [buttons]="buttons"></app-title> parent.component.ts export class ParentComponent { actionOne() { ... } title = 'Title'; subtitle = 'Subtitle'; buttons = [ { 'name': 'Name1', 'icon': 'Icon1', 'action': 'actionOne()'}, { 'name': 'Name2', 'icon': 'Icon2', 'action': 'actionTwo()'}, { 'name': 'Name3', 'icon': 'Icon3', 'action':