Skip to content

Instantly share code, notes, and snippets.

@isaacplmann
Created April 10, 2017 18:28
Show Gist options
  • Save isaacplmann/ce0d4b2c16def7d6f39b01b0467f48f2 to your computer and use it in GitHub Desktop.
Save isaacplmann/ce0d4b2c16def7d6f39b01b0467f48f2 to your computer and use it in GitHub Desktop.
<list rangerListData></list>
<button (click)="nqRefresh.emit({})">Refresh</button>
<table>
<tr>
<th>Name</th>
</tr>
<tr *ngFor="let item of nqData">
<td>{{item.name}}</td>
</tr>
</table>
@Component({
providers: [provideNqConnectedComponent(ListComponent)],
selector: 'list',
templateUrl: 'list.component.html'
})
export class ListComponent implements NqConnectedComponent {
@Input() nqData: Ranger[];
@Output() nqRefresh: EventEmitter<any> = new EventEmitter();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment