refactor(ch07): simplify code

see https://github.com/angular/angular.dart.tutorial/pull/92#discussion-
diff-10179304

address a comment from @pavelgj in #92