Skip to content

Instantly share code, notes, and snippets.

@albulescu
Created December 18, 2016 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albulescu/7d50d1a84d909270eb231723bdb3021b to your computer and use it in GitHub Desktop.
Save albulescu/7d50d1a84d909270eb231723bdb3021b to your computer and use it in GitHub Desktop.
@EventBusBind
@Component({
selector: 'wpci-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.less']
})
export class HeaderComponent implements OnInit {
ngOnInit() {}
@BusEvent("title.change")
onTitleChangeRequest(title:string):void {
this.title = title;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment