Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 6a6a7fe

Browse files
vicbtravis@travis-ci.org
authored and
travis@travis-ci.org
committed
feat(Context): Add ability to set the Type for the rootScope context
1 parent 3ec5d75 commit 6a6a7fe

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)