Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: third_party/pkg/route_hierarchical/example/full/home.dart

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
+ }));
+ });
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698