From 6164af6382f9393de0aee5df51bd3840a06c2f90 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Sat, 8 Feb 2014 15:04:35 -0600 Subject: [PATCH 1/2] [chap2] tweaks to match updates to tutorial prose --- Chapter_02/web/main.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Chapter_02/web/main.dart b/Chapter_02/web/main.dart index fba190a..36e6a77 100644 --- a/Chapter_02/web/main.dart +++ b/Chapter_02/web/main.dart @@ -7,9 +7,9 @@ import 'package:perf_api/perf_api.dart'; @MirrorsUsed(targets: const['recipe_book'], override: '*') import 'dart:mirrors'; -/* Use the NgController annotation to indicate that this class is an - * Angular Controller. The compiler will instantiate the controller if - * it finds it in the DOM. +/* Use the @NgController annotation to indicate that this class is an + * Angular Controller. Angular will instantiate the controller if + * it finds an element matching it's selector in the DOM. * * The selector field defines the CSS selector that will trigger the * controller. It can be any valid CSS selector which does not cross @@ -82,6 +82,6 @@ class MyAppModule extends Module { } } -main() { +void main() { ngBootstrap(module: new MyAppModule()); } From bdf753f67ab852b944029123e6b4eeb324eaf9aa Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Mon, 10 Feb 2014 16:10:27 -0600 Subject: [PATCH 2/2] Copyedits: it's -> its; Controller -> controller --- Chapter_02/web/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chapter_02/web/main.dart b/Chapter_02/web/main.dart index 36e6a77..a8e22f9 100644 --- a/Chapter_02/web/main.dart +++ b/Chapter_02/web/main.dart @@ -8,8 +8,8 @@ import 'package:perf_api/perf_api.dart'; import 'dart:mirrors'; /* Use the @NgController annotation to indicate that this class is an - * Angular Controller. Angular will instantiate the controller if - * it finds an element matching it's selector in the DOM. + * Angular controller. Angular will instantiate the controller if + * it finds an element matching its selector in the DOM. * * The selector field defines the CSS selector that will trigger the * controller. It can be any valid CSS selector which does not cross