-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$(...).sideNav is not a function #44
Comments
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. |
I was able to fix this issue by adding this line to my ember-cli-build.js file, after the app declaration.
|
@hojgr I just did that today and work for me. Here are my cli-build:
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:
|
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 |
I noticed you have |
Hello,
I'm trying to activate my sideNav navigation when page turns to mobile view and I'm unable to use Materialize's Javascript.
I've included this in my
ember-cli-build.js
, searched around but the last hour of looking around was unfortunately fruitless.The CSS works just well, but when I try to call following code from my route/activate() or chrome's console
I get
I've tried to include the materialize here and there with the
but it always ends up with this error in Chrome's console
Is there any way to fix this? Am I missing something important? In the readme it says to import the
materialize
inmy-file.js
- there is no such file, so I'm not sure what to think of that.Thank you very much :)
The text was updated successfully, but these errors were encountered: