Skip to content

Instantly share code, notes, and snippets.

@reed-lawrence
Created December 6, 2019 16:32
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 reed-lawrence/6939bf168e108a898e9e1d58c5b37990 to your computer and use it in GitHub Desktop.
Save reed-lawrence/6939bf168e108a898e9e1d58c5b37990 to your computer and use it in GitHub Desktop.
constructor(private state: AppStateService) {
this.state.onUserChanges.subscribe(
user => { console.log('New Email: ' + user.email); }
);
this.state.user = new User({ email: 'test@test.net' });
// console: New Email: test@test.net;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment