Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ilikerobots/7665798d75e32e21ccd0b47843c03f0e to your computer and use it in GitHub Desktop.
Save ilikerobots/7665798d75e32e21ccd0b47843c03f0e to your computer and use it in GitHub Desktop.
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