Skip to content

Instantly share code, notes, and snippets.

@dmitry-stepanenko
Created September 2, 2022 07:26
Show Gist options
  • Save dmitry-stepanenko/996833bdfa8c498dc42aee4f533fde2a to your computer and use it in GitHub Desktop.
Save dmitry-stepanenko/996833bdfa8c498dc42aee4f533fde2a to your computer and use it in GitHub Desktop.
export class AppComponent {
readonly animal = new FormControl(‘rabbit’);
constructor() {
ctrl.valueChanges.subscribe(console.log);
animal.setValue(‘hare’);
animal.setValue(‘cat’);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment