-
Notifications
You must be signed in to change notification settings - Fork 50
Installation
Daniel Bendel edited this page Jan 24, 2016
·
1 revision
In your project install the plugin via jspm with following command:
$ jspm install aurelia-materialize-bridge=github:aurelia-ui-toolkits/aurelia-materialize-bridge
- Make sure you use manual bootstrapping. In order to do so open your
index.htmland locate the element with the attribute aurelia-app:
<body aurelia-app="main">
...- Update
main.jsin yoursrcfolder with following content:
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
// Install and configure the plugin
.plugin('aurelia-materialize-bridge', bridge => {
bridge
.useButton()
.useCard()
.useCollapsible()
.useNavbar()
.useTabs()
.useWaves()
.useWell();
});
aurelia.start().then(a => a.setRoot());
}Note: The list above shows all available controls. If you choose to not use some of them, simply leave them out.
If you'd like to use all controls at once, simply specify:
.plugin('aurelia-materialize-bridge', bridge => bridge.useAll() );It is now possible to drop some custom-elements into your DOM. See the other pages on this website for detailed information on how to do this.
We recommend that you read these instructions in order to get started