Hello,

I have a carousel in a view, and i want to add items into the carousel. In my controller I get de carousel, and I use the add method to add items, but the new information is not showed.

After that, y press F5 and it works.

My view:

Code:
Ext.define('App.view.name',{
extend: 'Ext.Panel',
alias: 'widget.carouselView',
config: {
              ....,
              items: [
                           {
                                 xtype: 'carousel',
                                 cls: 'carrusel-imagenes-ofertas',
                                 indicator: true,
                                  items: [
                                  ]
                           }
             ]
   }
});
My controller:

Code:
refs: {
           ......,
           myCarousel: 'carouselView carousel', 

},
methodName: function() {
   var myCarousel = this.getMyCarousel();
   myCarousel.removeAll(true);
   var panelTmp = Ext.create('Ext.Panel', {
      html: '<img alt="" src= "<img_path>"/>'
   });
            
   myCarousel.add(panelTmp);
   myCarousel.setActiveItem(0);

}
Thanks,