Skip to content

Instantly share code, notes, and snippets.

@goughjo02
Created February 25, 2019 14:02
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 goughjo02/08611315f559803049fa8d2eabc785b9 to your computer and use it in GitHub Desktop.
Save goughjo02/08611315f559803049fa8d2eabc785b9 to your computer and use it in GitHub Desktop.
import { SelectionModel } from "@angular/cdk/collections";
@Component(...metaData)
export class AppComponent implements OnInit {
constructor(peopleSelection: PeopleSelectionService) {}
ngOnInit(): void {
this.peopleSelection.selection.changed.subscribe(e => {
console.log(`I have received a value ${e}`);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment