Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- angular.module('core').controller('CarouselController', ['$scope',
- function($scope) {
- $scope.interval = 3000;
- $scope.slides = [
- {image: 'http://placekitten.com/200/200',text: 'Kitten.'},
- {image: 'http://placekitten.com/225/200',text: 'Kitty!'},
- {image: 'http://placekitten.com/250/200',text: 'Cat.'},
- {image: 'http://placekitten.com/275/200',text: 'Feline!'}
- ];![enter image description here][1]
- }
- ])
- .directive('disableAnimation', function($animate){
- return {
- restrict: 'A',
- link: function($scope, $element, $attrs){
- $attrs.$observe('disableAnimation', function(value){
- $animate.enabled(!value, $element);
- });
- }
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement