Skip to content

Instantly share code, notes, and snippets.

@alvarocamillont
Created June 1, 2019 04:25
Show Gist options
  • Save alvarocamillont/16b243ce9fcda1c4a485162aef7bc095 to your computer and use it in GitHub Desktop.
Save alvarocamillont/16b243ce9fcda1c4a485162aef7bc095 to your computer and use it in GitHub Desktop.
<h1>Personagem</h1>
<section *ngIf="people$ | async as people">
<p>Nome: {{ people.name }}</p>
<p>Nascimento: {{ people.birth_year }}</p>
<p>Cor do Olho: {{ people.eye_color }}</p>
</section>
<br />
<h1>Planeta</h1>
<section *ngIf="planet$ | async as planet">
<p>Nome: {{ planet.name }}</p>
<p>Gravidade: {{ planet.gravity }}</p>
<p>População: {{ planet.population }}</p>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment