Today I visited the 1.0 alpha version of materializecss, Im working with Angular and Im using some of the components that need jQuery initialization like Side Nav
The Doc says that is possible to initializate them with:
var elem = document.querySelector('.sidenav');
var instance = new M.Sidenav(elem, options);
Instead of the jQuery way that Im using at the moment:
$(document).ready(function(){
$('.sidenav').sidenav();
});
How can I make It possible? What is M? Maybe I need an example of this new way...