Last active
September 1, 2017 13:09
-
-
Save ajspeller/17c45ad5a9afb17cacaedb7c2de832d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In the component ... | |
@Output() changed = new EventEmitter<Character>(); | |
characters: Character[]; | |
selectedCharacter: Character; | |
select(selectedCharacter: Character) { | |
this.selectedCharacter = selectedCharacter; | |
this.changed.emit(selectedCharacter); | |
} | |
In the template ... | |
<story-characters [storyId]="7" | |
(changed)=changed($event)> | |
</story-characters> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment