Created
November 27, 2016 10:14
-
-
Save ilikerobots/7665798d75e32e21ccd0b47843c03f0e 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'; | |
import 'package:angular_dart_page_titles_on_route/page/fields_component.dart'; | |
import 'package:angular_dart_page_titles_on_route/page/players_component.dart'; | |
import 'package:angular_dart_page_titles_on_route/page/teams_component.dart'; | |
@Component( | |
selector: 'my-app', | |
styleUrls: const ['app_component.css'], | |
templateUrl: 'app_component.html', | |
directives: const [ROUTER_DIRECTIVES], | |
providers: const [ROUTER_PROVIDERS], | |
) | |
@RouteConfig(const [ | |
const Route(path: '/players', name: 'Players', component: PlayersComponent, useAsDefault: true), | |
const Route(path: '/teams', name: 'Teams', component: TeamsComponent), | |
const Route(path: '/fields', name: 'Fields', component: FieldsComponent), | |
]) | |
class AppComponent {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment