From e5584e16855700b61281a7f80cc8697c47268211 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Wed, 20 Aug 2014 15:55:43 +0200 Subject: [PATCH] fix(form example): type() has been replaced by bind() --- example/web/forms/form.dart | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/example/web/forms/form.dart b/example/web/forms/form.dart index 4fd14b4ac..cd8b724bb 100644 --- a/example/web/forms/form.dart +++ b/example/web/forms/form.dart @@ -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(); }