nadavshatz / ember-cli-foundation-sass

Automatically sets up Foundation 5 SASS in your Ember CLI app.
https://www.npmjs.org/package/ember-cli-foundation-sass
MIT License
68 stars 18 forks source link

Magellan working? #7

Closed manuelsteiner closed 9 years ago

manuelsteiner commented 9 years ago

Hi, i tried to use the Magellan feature of Foundation but couldn't get it to work.

I have the following in my Brocfile.js:

var app = new EmberApp({
  'foundation-sass': {
    'modernizr': true,
    'fastclick': true,
    'foundationJs': 'all'
  }
});

I have the following in my index.hbs file:

<div data-magellan-expedition="fixed">
  <dl class="sub-nav">
    <dd data-magellan-arrival="destination"><a href="#destination">Build with HTML</a></dd>
  </dl>
</div>

<a name="destination"></a>
<h1 data-magellan-destination="destination">Welcome to your destination</h1>

And the following in my views/index.js:

import Ember from 'ember';

export default Ember.View.extend({
  didInsertElement: function() {
    this.$().foundation();
  }
});

Does anyone have an idea or got the Magellan feature to work in an Ember app?

Thanks for the help

Globegitter commented 9 years ago

Sorry quite busy these days, maybe try Ember.$(document).foundation(); and let me know if that works.

manuelsteiner commented 9 years ago

Thanks that did the trick :+1: