Comments (5)
@hojgr I just did that today and work for me. Here are my cli-build:
var app = new EmberApp(defaults, {
// Add options here
sassOptions: {
includePaths: [
'bower_components/materialize/sass'
]
}
});
Then I could call on console. To make it work by default I make a component and put this on the js of the component:
import Ember from 'ember';
export default Ember.Component.extend({
didRender() {
this._super(...arguments);
$(".button-collapse").sideNav();
}
});
from ember-materialize-shim.
Thanks @lypborges your solution saved my day, I was having a related issue on ember, my side-nav was not responding when I signed-out and then signed-in, the event listener for the icon was not initialized, but I did the same you did in my component and now it's working fine
from ember-materialize-shim.
I am also extremely confused by what "my-file.js" means. I tried adding the import to app.js, but Ember said it couldn't find the module.
from ember-materialize-shim.
I was able to fix this issue by adding this line to my ember-cli-build.js file, after the app declaration.
app.import('bower_components/materialize/bin/materialize.js');
from ember-materialize-shim.
I noticed you have omitJS: true
in the options. Are you bringing in the JS some other way? Also, this issue has been inactive for over a year, so I am going to close it unless someone requests otherwise.
from ember-materialize-shim.
Related Issues (20)
- Action required: Greenkeeper could not be activated 🚨
- Remove invalid app.import option "exports" HOT 2
- Can we replace with ember-auto-import?
- File to import not found or unreadable: materialize HOT 7
- Replace travis-deploy-once with Travis-CI stage
- Dependency deprecation warning: exists-sync (npm)
- Dependency deprecation warning: bower (npm)
- The automated release is failing 🚨 HOT 41
- 'undefined' is not a function (evaluating 'document.querySelectorAll.bind(document)') HOT 3
- Error when running tests HOT 4
- error with materializecss 0.97.7 HOT 4
- Figure out why some yargs dependencies are not installed by npm HOT 1
- Dependency Dashboard
- Fastboot: Could not find module `materialize` HOT 1
- Action required: Greenkeeper could not be activated 🚨
- An in-range update of ember-cli-babel is breaking the build 🚨 HOT 3
- An in-range update of ember-cli-htmlbars is breaking the build 🚨
- Compile error with Fastboot HOT 4
- Installer error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-materialize-shim.