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

Commit

Permalink
fix(form example): type() has been replaced by bind()
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb authored and jbdeboer committed Aug 25, 2014
1 parent f809a96 commit e5584e1
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions example/web/forms/form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,10 @@ class PreviewCtrl {
}
}

class FormModule extends Module {
FormModule() {
type(FormCtrl);
type(PreviewCtrl);
}
}

main() {
applicationFactory().addModule(new FormModule()).run();
applicationFactory()
..addModule(new Module()
..bind(FormCtrl)
..bind(PreviewCtrl))
..run();
}

0 comments on commit e5584e1

Please sign in to comment.