Meteor with iron-router cant get slick carousel working

前端 未结 2 1309
盖世英雄少女心
盖世英雄少女心 2020-12-06 21:35

I am using iron-router, i have a route \"models\" which has a list of items. When the user clicks one of these items a new route \"model\" is used, the name of the selected

2条回答
  •  北海茫月
    2020-12-06 22:07

    Usually you would call a plugin on an element in Template.myTemplate.onRendered:

    Template.xxx.onRendered(function() {
      $('#carousel').slick();
    });`
    

提交回复
热议问题