Created
May 14, 2019 13:23
-
-
Save cyberpirate92/f8f5b9703fea62835ac5c6c2232ac628 to your computer and use it in GitHub Desktop.
This file contains 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 characters
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