Git Product home page Git Product logo

Comments (5)

lypborges avatar lypborges commented on June 27, 2024 2

@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.

Willibaur avatar Willibaur commented on June 27, 2024 1

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.

Mattkins avatar Mattkins commented on June 27, 2024

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.

Mattkins avatar Mattkins commented on June 27, 2024

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.

jacobq avatar jacobq commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.