lundi 28 septembre 2015

Ember-cli, Masonry, Isotope, Packery. How to use?

I need to use them in my ember-cli project.

How to start?

I writed in terminal:

bower install isotope --save

then in my ember-cli-build.js I added app.import ecc..., but then I don't know what to do.

Where to put my intialization script, like this:

$('.grid').isotope({
  // options
  itemSelector: '.grid-item',
  layoutMode: 'fitRows'
});

If I put it in application.hbs it give to me an error and when i change route with {{#link-to}} it doesn't work anymore.

What to do?

In the web there aren't many resources about this.




Aucun commentaire:

Enregistrer un commentaire