Permalink
Browse files

doc: Example for 'main'

  • Loading branch information...
MikeMitterer committed Oct 23, 2018
1 parent 28a73f6 commit a3e7da38dad46ba2d42ecfa6c5db6958d5bb3bb3
Showing with 14 additions and 1 deletion.
  1. +14 −1 README.md
@@ -32,4 +32,17 @@
- [m4d_typography.example.mikemitterer.at](http://m4d_typography.example.mikemitterer.at)



## Usage
There is more documentation on the way but here is an example how
`main.dart` looks for the [Accordion-Example](http://m4d_accordion.example.mikemitterer.at)

```dart
import 'package:m4d_core/m4d_ioc.dart' as ioc;
import "package:m4d_components/m4d_components.dart";
main() async {
ioc.IOCContainer.bindModules([ CoreComponentsModule() ]);
await componentHandler().run();
}
```

0 comments on commit a3e7da3

Please sign in to comment.