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

Unified Diff: example/angular/routing/accessing_router_in_controller/index.html

Issue 135183008: First group of routing examples (Closed) Base URL: https://github.com/dart-lang/dart_by_example.git@master
Patch Set: Created 6 years, 11 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: example/angular/routing/accessing_router_in_controller/index.html
diff --git a/example/angular/components/creating_a_one_way_one_time_binding/index.html b/example/angular/routing/accessing_router_in_controller/index.html
similarity index 73%
copy from example/angular/components/creating_a_one_way_one_time_binding/index.html
copy to example/angular/routing/accessing_router_in_controller/index.html
index b0130b10ab6c9fd07b98b7ad33572d4015764c7d..989e7e08ca55b5b53244f08f9c2284383aa83c62 100644
--- a/example/angular/components/creating_a_one_way_one_time_binding/index.html
+++ b/example/angular/routing/accessing_router_in_controller/index.html
@@ -10,15 +10,17 @@ BSD-style license that can be found in the LICENSE file.
<link rel="stylesheet" type="text/css" href="../../../common.css">
</head>
<body>
- <div my-controller>
+ <div>
<div class="well">
- <my-component text='ctrl.text'></my-component>
+ <span><a href="#/book/1/show">Book 1</a></span> |
+ <span><a href="#/book/2/show">Book 2</a></span>
</div>
- <div>
- <input type="text" ng-model="ctrl.text" value="{{ctrl.text}}">
+ <div ng-bind-route="book">
+ <div my-controller>
+ <ng-view></ng-view>
+ </div>
</div>
</div>
-
<script type="application/dart" src="main.dart"></script>
<script src="packages/browser/dart.js"></script>
</body>

Powered by Google App Engine
This is Rietveld 408576698