I am creating an ember application.In one of the page I am implementing weather api. I am getting the data which I want to display, but cannot implement jquery slider in ember.js framework. This is my template:-
<script type="text/x-handlebars" id="weather">
<div class="row">
<div class="col-md-12">
{{#view App.SliderView}}
<div class="slider1">
{{#each item in model}}
{{#each item1 in item}}
<div class="slide">
<div class="image">
<img src="{{unbound item1.weather.0.main}}.jpg"/>
</div>
</div>
{{/each}}
{{/each}}
</div>
{{/view}}
</div>
</div>
</script>
This is the view that I have created:-
App.SliderView = Ember.View.extend({
didInsertElement:function(){
$(".slider1").bxSlider({
slideWidth: 200,
minSlides: 1,
maxSlides: 3,
slideMargin: 0
});
}
});
The slider is not working after integrating it with ember.js. Presently I am just showing the images as per the data returing from weather api. Thanks in advance.