Created
April 10, 2017 18:28
-
-
Save isaacplmann/ce0d4b2c16def7d6f39b01b0467f48f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<list rangerListData></list> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button (click)="nqRefresh.emit({})">Refresh</button> | |
<table> | |
<tr> | |
<th>Name</th> | |
</tr> | |
<tr *ngFor="let item of nqData"> | |
<td>{{item.name}}</td> | |
</tr> | |
</table> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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