Skip to content

Instantly share code, notes, and snippets.

@Polyterative
Last active May 12, 2021 12:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Allows to declare anglar variables in the template to unify subscriptions for example
<div *ngIf='{
userActions:(dataService.userActions$|async)
} as globalBag'
>
<ng-container *ngIf='{
timepointCount:(globalBag.timePoints.length),
widthObject:({"width.%": globalBag.zoomValue+""})
}as lowerBag'
>
{{globalBag.userActions|json}}
</ng-container>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment