skip to Main Content

$timeout service not updating angular controller from directive – Twitter bootstrap

"use strict"; angular.module("appBanner", []) .controller('bannerCtrl', function($scope) { $scope.slides = ["auto", "boatowners", "commercial"]; $scope.currentIndex = 0; $scope.setCurrentSlideIndex = function (index) { $scope.currentIndex = index; $scope.currentSlideIndex = $scope.slides[$scope.currentIndex]; } $scope.isCurrentSlideIndex = function (index) { return $scope.currentIndex === index; }; $scope.prevSlide = function…

VIEW QUESTION
Back To Top
Search