Skip to content

Commit

Permalink
doc: Example for 'main'
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMitterer committed Oct 23, 2018
1 parent 28a73f6 commit a3e7da3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Expand Up @@ -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.