Closed victor7w7r closed 8 months ago
I have to use @contained
for generate, but @Expose
not work properly for build, please help 😢
import 'dev.reflectable.dart';
@contained
@Expose('/controller')
class MyController extends Controller {
@Expose('/')
a() => "Hello, world!";
}
void main() async {
initializeReflectable();
final reflector = GeneratedReflector();
var app = Angel(reflector: reflector);
var http = AngelHttp(app);
await app.mountController<MyController>();
print("Angel server listening at ${http.uri}");
}
There are some limitations to using reflectable
for reflection. Work in progress to update the documents and examples.
I'm amazed by this project, I wish there was more documentation to build my app in standalone mode, without using the SDK container, thanks and keep maintaining this project
How i can use the StaticReflector for DI, i don't have any examples for usage, in my case i need to register my controller without success
Please help and thanks.