Skip to content

Instantly share code, notes, and snippets.

@cyberpirate92
Created May 14, 2019 13:23
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 cyberpirate92/f8f5b9703fea62835ac5c6c2232ac628 to your computer and use it in GitHub Desktop.
Save cyberpirate92/f8f5b9703fea62835ac5c6c2232ac628 to your computer and use it in GitHub Desktop.
export class AppComponent {
public person: Person = {
name: 'John Doe',
age: 20
};
public reassign(): void {
this.person = {
name: this.person.name,
age: this.person.age
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment