Created
May 13, 2022 20:25
-
-
Save twerske/121512c9902cb35ae04291181cccc307 to your computer and use it in GitHub Desktop.
Bind to protected component members
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
@Component({ | |
selector: 'my-component', | |
template: '{{ message }}', // Now compiles! | |
}) | |
export class MyComponent { | |
protected message: string = 'Hello world'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment