Refactor to work with angular.dart 0.10.0