lundi 20 juin 2016

How to include bower component (getmdl) js into ember?

I install material-design-lite via bower ..

So I include into my app ..

var app = new EmberApp(defaults, {
    sassOptions: {
      includePaths: ['bower_components/material-design-lite/src']
    }
  });

  app.import('bower_components/material-design-lite/material.js');

And import into my style ..

@import "_color-definitions";

$color-primary: $palette-blue-500;
$color-accent: $palette-orange-400;

@import "material-design-lite";

The style is loaded correctly, but components that rely on javascript do not work as is the case of tabs and menus

I try to change tab clicking and nothing happens




Aucun commentaire:

Enregistrer un commentaire