Guest User

Untitled

a guest
Feb 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. for(i = 0; i < 5; i++) {
  2. console.log( i + 'estrelas!');
  3. }
  4.  
  5. <ion-icon *ngFor="1 to 5" name="star"></ion-icon>
  6.  
  7. <div *ngFor="#hero of heroes">{{hero.fullName}}</div>
  8.  
  9. <i [ngClass]="{
  10. 'ion-android-star-outline': valorEstrela < 1,
  11. 'ion-android-star': valorEstrela >= 1}">
  12. </i>
  13. <i [ngClass]="{
  14. 'ion-android-star-outline': valorEstrela < 2,
  15. 'ion-android-star': valorEstrela >= 2}">
  16. </i>
  17. <i [ngClass]="{
  18. 'ion-android-star-outline': valorEstrela < 3,
  19. 'ion-android-star': valorEstrela >= 3}">
  20. </i>
  21. <i [ngClass]="{
  22. 'ion-android-star-outline': valorEstrela < 4,
  23. 'ion-android-star': valorEstrela >= 4}">
  24. </i>
  25. <i [ngClass]="{
  26. 'ion-android-star-outline': valorEstrela < 5,
  27. 'ion-android-star': valorEstrela >= 5}">
  28. </i>
Add Comment
Please, Sign In to add comment