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

Commit 173d27e

Browse files
committed
Merge pull request #19 from pavelgj/ng-controller-test-fix
fixed ng-controller test -- required explicit binding for MainController
2 parents 8cb01fc + c835c67 commit 173d27e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/directives/ng_controller_spec.dart

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ class MainController {
1212

1313

1414
main() {
15-
beforeEach(module(angularModule));
15+
beforeEach(module((AngularModule module) {
16+
module.type(MainController, MainController);
17+
angularModule(module);
18+
}));
1619

1720
describe('NgController', () {
1821
var compile, element, rootScope;

0 commit comments

Comments
 (0)