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

Unified Diff: example/angular/routing/accessing_router_in_controller/views/show_book.html

Issue 135183008: First group of routing examples (Closed) Base URL: https://github.com/dart-lang/dart_by_example.git@master
Patch Set: Tweaks 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/views/show_book.html
diff --git a/example/angular/components/binding_an_attribute_to_a_string/my_component.html b/example/angular/routing/accessing_router_in_controller/views/show_book.html
similarity index 58%
copy from example/angular/components/binding_an_attribute_to_a_string/my_component.html
copy to example/angular/routing/accessing_router_in_controller/views/show_book.html
index ecc1742227a578003b1b2cfa689a11a0a5fec8ff..0e90e3cfe18e2081e313345f364e6542a9ef2678 100644
--- a/example/angular/components/binding_an_attribute_to_a_string/my_component.html
+++ b/example/angular/routing/accessing_router_in_controller/views/show_book.html
@@ -3,7 +3,7 @@ Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
-->
-<div>
- <input type="text" ng-model="cmp.text" value="{{cmp.text}}"><br>
- <p>{{cmp.text.length}}</p>
-</div>
+<div my-controller>
+ <div>Title: {{ctrl.bookMap[ctrl.bookId].title}}</div>
+ <div>Description: {{ctrl.bookMap[ctrl.bookId].description}}</div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698