Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. angular.module('core').controller('CarouselController', ['$scope',
  2. function($scope) {
  3. $scope.interval = 3000;
  4. $scope.slides = [
  5. {image: 'http://placekitten.com/200/200',text: 'Kitten.'},
  6. {image: 'http://placekitten.com/225/200',text: 'Kitty!'},
  7. {image: 'http://placekitten.com/250/200',text: 'Cat.'},
  8. {image: 'http://placekitten.com/275/200',text: 'Feline!'}
  9. ];![enter image description here][1]
  10. }
  11. ])
  12. .directive('disableAnimation', function($animate){
  13. return {
  14. restrict: 'A',
  15. link: function($scope, $element, $attrs){
  16. $attrs.$observe('disableAnimation', function(value){
  17. $animate.enabled(!value, $element);
  18. });
  19. }
  20. };
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement