Last active
May 9, 2019 08:30
-
-
Save armanozak/34376494d9c38ef847c1b6e324d9d0aa to your computer and use it in GitHub Desktop.
Angular Context - One-way Data-binding (#3) #blog
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: 'one-way', | |
template: ` | |
<ng-template contextDisposer let-context> | |
<progressbar | |
[type]="context.type" | |
[value]="context.progress" | |
[striped]="context.progressStriped" | |
>{{ progress ? progress + '%' : '' }}</progressbar> | |
</ng-template> | |
`, | |
}) | |
export class OneWayComponent {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment