Javascript 如何在angularjs上配置Siema插件

Javascript 如何在angularjs上配置Siema插件,javascript,angularjs,siema,Javascript,Angularjs,Siema,我正在尝试实现Siema() 但它从来都不起作用。就好像它从不接受配置,也不初始化任何东西。 这是angularjs 1.6。 thx suggestion.component.js (function () { 'use strict'; angular .module('amSuggestions') .component('suggestionsSlider', { bind

我正在尝试实现Siema() 但它从来都不起作用。就好像它从不接受配置,也不初始化任何东西。 这是angularjs 1.6。 thx

suggestion.component.js

 (function () {
        'use strict';

        angular
            .module('amSuggestions')
            .component('suggestionsSlider', {
                bindings: {
                    suggestions: '<'
                },
                templateUrl: 'suggestions-slider/suggestions-slider.html',
                controller: SuggestionsSliderController
            });

        function SuggestionsSliderController() {

            this.$onInit = function () {
                var mySiema = new Siema({
                    selector: '.siema',
                    perPage: {
                        768: 2,
                        992: 4
                    }
                });
            };
        }
    })();
.siema
    div(ng-repeat="suggestion in $ctrl.suggestions | limitTo: 4")
        suggestion(suggestion="suggestion")