Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 54e72ac

Browse files
committed
Merge pull request #70 from chalin/patch-chap2-comp-class-updates
[chap2] tweaks to match updates to tutorial prose
2 parents 6dd9d1e + bdf753f commit 54e72ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Chapter_02/web/main.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import 'package:perf_api/perf_api.dart';
77
@MirrorsUsed(targets: const['recipe_book'], override: '*')
88
import 'dart:mirrors';
99

10-
/* Use the NgController annotation to indicate that this class is an
11-
* Angular Controller. The compiler will instantiate the controller if
12-
* it finds it in the DOM.
10+
/* Use the @NgController annotation to indicate that this class is an
11+
* Angular controller. Angular will instantiate the controller if
12+
* it finds an element matching its selector in the DOM.
1313
*
1414
* The selector field defines the CSS selector that will trigger the
1515
* controller. It can be any valid CSS selector which does not cross
@@ -82,6 +82,6 @@ class MyAppModule extends Module {
8282
}
8383
}
8484

85-
main() {
85+
void main() {
8686
ngBootstrap(module: new MyAppModule());
8787
}

0 commit comments

Comments
 (0)