Skip to content

Commit 131eaf9

Browse files
vicbdsalsbury
authored andcommitted
feat(Context): Add ability to set the Type for the rootScope context
1 parent 3ec5d75 commit 131eaf9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/application.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ abstract class Application {
166166
return this;
167167
}
168168

169+
Application rootContextType(Type rootContext) {
170+
modules.add(new Module()..bind(Object, toImplementation: rootContext));
171+
return this;
172+
}
173+
169174
Injector run() {
170175
publishToJavaScript();
171176
return zone.run(() {

0 commit comments

Comments
 (0)