Material Design Lite (MDL) was quite easy to setup, but I get some problems when I try to create components as I would like to design them.
For example I would like my main index.html to look something like this (just the body tags):
<body>
<app>Loading...</app>
</body>
The component with the "app" selector has a template that looks something like this:
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<div class="mdl-layout-icon"><img id="Logo" src="images/Logo.png"></div>
<span class="mdl-layout-title">My Custom App</span>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Drawer</span>
</div>
<main class="mdl-layout__content">
<router-outlet></router-outlet>
</main>
</div>
If I use it like this everything looks ok. The routing works as expected but for example the button for the drawer on the title bar disappears! I suppose it has something to do with the way MDL wants to be initialized or how their Javascript code accesses the DOM.