Skip to content

Instantly share code, notes, and snippets.

@niniyzni
Created August 11, 2018 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niniyzni/00ed267c0cd3b97e78fd90791e54ec51 to your computer and use it in GitHub Desktop.
Save niniyzni/00ed267c0cd3b97e78fd90791e54ec51 to your computer and use it in GitHub Desktop.
<div>
<h1>
{{ title }}
</h1>
<button (click)="myFunc()">Get All State Information</button>
</div>
<br>
<div>
<h2 >States:</h2>
<div *ngFor="let r of result">
<p>{{r.id}}</p>
</div>
<ul>
<li *ngFor="let r of result">
<input type="text" name="food-name" [(ngModel)]="r.id">
</li>
</ul>
<!-- <app-nav-item-comp *ngFor="let item of navItems" [item]="item"></app-nav-item-comp> -->
<ul>
<li>
StateName1
<ul>
<li>Largest City:[ToDo]</li>
<li>Capital City:[ToDo]</li>
<li>Area:[ToDo]</li>
</ul>
</li>
<li>
StateName2
<ul>
<li>Largest City:[ToDo]</li>
<li>Capital City:[ToDo]</li>
<li>Area:[ToDo]</li>
</ul>
</li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment