A simple shim for using Materialize in Ember.js apps
npm install ember-materialize-shim




FASTBOOT COMPATIBLE
A very simple shim to add Materialize SASS and JavaScript resources to your ember.js app
Install this addon into your ember.js app, using ember-cli.
Reinstall node-sass to ensure that you have an older version, which is required to circumvent an outstanding issue.
``sh`
ember install ember-materialize-shim
npm uninstall node-sass && npm install
And then you can import materialize styles
app/styles/app.scss
`scss`
@import "materialize"
And import materialize javascript
my-file.js
`js`
import Materialize from 'materialize';
Optionally, you may omit the JavaScript component of Materialize, by customizing your ember-cli-build.js
`js`
var app = new EmberApp(defaults, {
...
'materialize-shim': {
omitJS: true
}
});
* git clone this repositorynpm install
* bower install
*
* ember server
* Visit your app at http://localhost:4200.
* npm test (Runs ember try:testall to test your addon against multiple Ember versions)ember test
* ember test --server
*
* ember build`
For more information on using ember-cli, visit http://www.ember-cli.com/.