MikeMitterer / dart-material-design-lite

Material Design Lite Components, Directives + SPA with HTML, CSS + Dart
http://www.material-design-lite.pub/
Other
228 stars 26 forks source link

Add syntactic sugar for initializing mdl library #4

Open andresaraujo opened 9 years ago

andresaraujo commented 9 years ago

It would be great if there was a simpler way of initializing the mdl library with defaults.

Instead of doing:

mdl.registerMdl();
await mdl.componentFactory().run();

How about something like:

await mdl.initMdl();