2016-06-27 00:20:42 +00:00
|
|
|
library angel_framework.test.common;
|
|
|
|
|
2016-12-10 14:05:40 +00:00
|
|
|
import 'package:angel_framework/angel_framework.dart';
|
2016-09-15 19:53:01 +00:00
|
|
|
|
|
|
|
class Todo extends MemoryModel {
|
2016-06-27 00:20:42 +00:00
|
|
|
String text;
|
|
|
|
String over;
|
|
|
|
|
|
|
|
Todo({String this.text, String this.over});
|
|
|
|
}
|
2016-12-10 14:05:40 +00:00
|
|
|
|
|
|
|
incrementTodoTimes(e) {
|
|
|
|
IncrementService.TIMES++;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Hooks(before: const [incrementTodoTimes])
|
|
|
|
class IncrementService extends Service {
|
|
|
|
static int TIMES = 0;
|
|
|
|
|
|
|
|
@override
|
|
|
|
@Hooks(after: const [incrementTodoTimes])
|
|
|
|
index([params]) async => [];
|
|
|
|
}
|