Updated README
This commit is contained in:
parent
168c51074b
commit
83873d0fb7
1 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
||||||
[](https://gitter.im/angel_dart/discussion)
|
[](https://gitter.im/angel_dart/discussion)
|
||||||
[](https://github.com/dukefirehawk/angel/tree/master/packages/container/angel_container/LICENSE)
|
[](https://github.com/dukefirehawk/angel/tree/master/packages/container/angel_container/LICENSE)
|
||||||
|
|
||||||
An better IoC container for Angel3, ultimately allowing Angel3 to be used with or without `dart:mirrors` package.
|
A better IoC container for Angel3, ultimately allowing Angel3 to be used with or without `dart:mirrors` package.
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
import 'package:angel3_container/mirrors.dart';
|
import 'package:angel3_container/mirrors.dart';
|
||||||
|
@ -21,13 +21,13 @@ An better IoC container for Angel3, ultimately allowing Angel3 to be used with o
|
||||||
}
|
}
|
||||||
|
|
||||||
bool process1(RequestContext req, ResponseContext res) {
|
bool process1(RequestContext req, ResponseContext res) {
|
||||||
res.write('Hello, ');
|
res.write('Hello, ');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool process2(RequestContext req, ResponseContext res) {
|
bool process2(RequestContext req, ResponseContext res) {
|
||||||
res.write('From Sales, ');
|
res.write('From Sales, ');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
|
|
Loading…
Reference in a new issue