JSPM
Getting the plugin
$ jspm install aurelia-materialize-bridge$ jspm install npm:materialize-css@nextConfigure your app
<body aurelia-app="main"> ...<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">export function configure(aurelia) { return aurelia.loader.loadModule("materialize-css").then(() => { aurelia.use .standardConfiguration() .developmentLogging() // Install and configure the plugin .plugin('aurelia-materialize-bridge', bridge => bridge.useAll() ); return aurelia.start().then(a => a.setRoot()); } }.plugin('aurelia-materialize-bridge', bridge => { bridge .useButton() .useCollapsible() .useModal() .useTabs(); });
You are done!
Last updated