Skip to content

Instantly share code, notes, and snippets.

@armanozak
Last active May 9, 2019 08:30
Show Gist options
  • Save armanozak/34376494d9c38ef847c1b6e324d9d0aa to your computer and use it in GitHub Desktop.
Save armanozak/34376494d9c38ef847c1b6e324d9d0aa to your computer and use it in GitHub Desktop.
Angular Context - One-way Data-binding (#3) #blog
@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