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

Set the selector name as variable in the comment #21

Closed banalg closed 9 years ago

banalg commented 9 years ago

If the selector is set up in the viewFactory function as below, the log tell to add a "#main" ID, but I must rather add the selector I have filled in attributes of the function. In example for the example bellow the log must be : Please add <div id="cloud" class="mdl-content mdl-js-content">Loading...</div> to your index.html

Example of call with a selector :

..addRoute(
    name: 'home',
    defaultRoute: true, path: '/',
    enter: view(
        "views/home.html",
        new mdl.DummyController(),
        __selector: "#cloud"__
    )
)