Last active
September 1, 2017 13:09
-
-
Save ajspeller/17c45ad5a9afb17cacaedb7c2de832d1 to your computer and use it in GitHub Desktop.
Revisions
-
ajspeller revised this gist
Sep 1, 2017 . 1 changed file with 8 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ In the component ... @Output() changed = new EventEmitter<Character>(); @@ -8,4 +8,10 @@ selectedCharacter: Character; select(selectedCharacter: Character) { this.selectedCharacter = selectedCharacter; this.changed.emit(selectedCharacter); } In the template ... <story-characters [storyId]="7" (changed)=changed($event)> </story-characters> -
ajspeller created this gist
Sep 1, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ on the component @Output() changed = new EventEmitter<Character>(); characters: Character[]; selectedCharacter: Character; select(selectedCharacter: Character) { this.selectedCharacter = selectedCharacter; this.changed.emit(selectedCharacter); }