Closed manuelsteiner closed 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
Sorry quite busy these days, maybe try Ember.$(document).foundation(); and let me know if that works.
Ember.$(document).foundation();
Thanks that did the trick :+1:
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:
I have the following in my index.hbs file:
And the following in my views/index.js:
Does anyone have an idea or got the Magellan feature to work in an Ember app?
Thanks for the help