Skip to content

Instantly share code, notes, and snippets.

@omariosouto
Created March 31, 2018 14:49
Show Gist options
  • Save omariosouto/2edd4d31b7f2bec114a7f318970b605f to your computer and use it in GitHub Desktop.
Save omariosouto/2edd4d31b7f2bec114a7f318970b605f to your computer and use it in GitHub Desktop.
Angular com dois layouts
<div *ngIf="fotos.length === 1">
mostrar o conteudo daqui
<foto [titulo]="fotos[0].titulo">
</foto>
</div>
<foto *ngFor="let foto of fotos" >
</foto>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment