public: new carousels in pubic interface: teams and exercices

+ fix autocarousel directive
This commit is contained in:
nemunaire 2018-02-02 21:10:31 +01:00
commit 1dcebc4eca
5 changed files with 66 additions and 13 deletions

View file

@ -24,11 +24,13 @@ angular.module("FICApp")
}
}
}])
.directive('autocarousel', [function() {
.directive('autocarousel', ['$timeout', function($timeout) {
return {
restrict: 'A',
link : function() {
$('#carouselThemes').carousel();
link : function($scope, $element) {
$timeout(function() {
$($element[0]).carousel();
});
}
}
}]);