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

Deferred Modules ( Aka Lazy Loading) ? #38

Open sandrobilbeisi opened 8 years ago

sandrobilbeisi commented 8 years ago

Has anyone gotten deferred definition routes to work with DMDL ?

sureshg commented 7 years ago

I haven't tried it, but this might help - https://medium.com/@matanlurey/lazy-loading-with-angular-dart-14f58004f988

MikeMitterer commented 7 years ago

I just tried it with this sample (quick and dirty) https://github.com/MikeMitterer/dart-sunshine/commit/2b8e773a5161ee78313f4c15c82d3d3672fcc90a

As you can see I had to import 3libs in addition to mdl (mdlcore, mdlflux, mdlapplication) but it works. For a more comfortable integration I have to reorganize the libs a bit but in general it works quite nice.