Skip to content

Commit

Permalink
Ajustado versão do rxjs que estava com erro (ReactiveX/rxjs#4540)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago.Weege committed Mar 4, 2019
1 parent 4c2009b commit 3f1034c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions projeto/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion projeto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@angular/platform-browser-dynamic": "^6.0.0",
"@angular/router": "^6.0.0",
"core-js": "^2.5.4",
"rxjs": "^6.0.0",
"rxjs": "6.0.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions projeto/src/app/clientes/clientes.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<input type="text" [(ngModel)]="cliente.peso">
<button type="button" (click)="addCliente()">Add cliente </button>
<ul>
<li [style.color]="item.idade > 30 ? 'red':'green'" *ngFor="let item of clientes">
{{item.nome}} - {{item.idade}} - {{item.peso}}</li>
<li [style.color]="item.peso > 80 ? 'red':'green'" *ngFor="let item of clientes">
{{item.nome}} - {{item.idade}} - {{(item.peso > 80)? 'Gordo' : 'Ok'}}</li>
</ul>
</div>

0 comments on commit 3f1034c

Please sign in to comment.