refactor(ch07): simplify code

see https://github.com/angular/angular.dart.tutorial/pull/92#discussion-
diff-10179304
Merge pull request #93 from vicb/createInj

refactor(ch07): simplify code