Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. ngOnInit() {
  2. this.route.params.subscribe(params => {
  3.  
  4. let hash = params['hash']
  5.  
  6. this.projectUserService.getPoll(hash).subscribe(res => {
  7. this.poll = res;
  8. this.valid = res.ableToVote;
  9. this.isDataLoaded = true;
  10. });
  11. });
  12. }
  13.  
  14. <div *ngIf="isDataLoaded">
  15.  
  16. <div *ngIf="ableToVote; else elseTemplate">
  17.  
  18. ......
  19. </div>
  20. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement