Created
November 27, 2016 10:20
-
-
Save ilikerobots/96de330694eef29f5f602cf9ecbae6b7 to your computer and use it in GitHub Desktop.
This file contains 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
import 'package:angular2/core.dart'; | |
import 'package:angular2/router.dart'; | |
@Component( | |
selector: 'my-player-detail', | |
template: '''<h2>Player Detail</h2> <h3>{{player}}</h3>''', | |
) | |
class PlayerDetailComponent implements OnInit { | |
final RouteParams _routeParams; | |
String player = "Not selected"; | |
PlayerDetailComponent(this._routeParams); | |
void ngOnInit() { | |
player = _routeParams.get('id'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment