Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ngOnInit() {
- this.route.params.subscribe(params => {
- let hash = params['hash']
- this.projectUserService.getPoll(hash).subscribe(res => {
- this.poll = res;
- this.valid = res.ableToVote;
- this.isDataLoaded = true;
- });
- });
- }
- <div *ngIf="isDataLoaded">
- <div *ngIf="ableToVote; else elseTemplate">
- ......
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement