// #docregion import 'package:angular2/core.dart'; @Injectable() class Logger { List _logs = []; List get logs => _logs; void log(String message) { _logs.add(message); print(message); } }