| Index: third_party/pkg/route_hierarchical/example/full/home.dart
|
| diff --git a/third_party/pkg/route_hierarchical/example/full/home.dart b/third_party/pkg/route_hierarchical/example/full/home.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e6794480d382e2324634dabca64c5a1e1f642b24
|
| --- /dev/null
|
| +++ b/third_party/pkg/route_hierarchical/example/full/home.dart
|
| @@ -0,0 +1,21 @@
|
| +library portfolio;
|
| +
|
| +import 'package:web_ui/web_ui.dart';
|
| +import 'package:route_hierarchical/client.dart';
|
| +
|
| +import 'index.dart';
|
| +
|
| +class HomeComponent extends WebComponent {
|
| + var links = <String, Map<String, String>>{};
|
| +
|
| + created() {
|
| + ['100001', '111111'].forEach((companyId) {
|
| + links[companyId] = {};
|
| + ['info', 'activities', 'notes'].forEach((mode) =>
|
| + links[companyId][mode] = router.url('companyInfo.companyId.' + mode,
|
| + parameters: {
|
| + 'companyId': companyId
|
| + }));
|
| + });
|
| + }
|
| +}
|
|
|