From d0d23c7dd19dca783332c38a2505079d9a409a38 Mon Sep 17 00:00:00 2001 From: umpirsky Date: Sat, 6 Jun 2015 13:52:18 +0200 Subject: [PATCH] Fixed with https://github.com/vasyabigi/angular-slick/pull/100 --- app/scripts/controllers/restaurant.js | 7 +++++++ app/views/restaurant.html | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/scripts/controllers/restaurant.js b/app/scripts/controllers/restaurant.js index b1afce9..24b48b2 100644 --- a/app/scripts/controllers/restaurant.js +++ b/app/scripts/controllers/restaurant.js @@ -9,6 +9,13 @@ angular.module('restaurantsApp') $scope.restaurant = data; }); + $scope.slickOnInit = function() { + $scope.refreshing = true; + $scope.$apply(); + $scope.refreshing = false; + $scope.$apply(); + }; + $scope.breakpoints = [{ breakpoint: 1024, settings: { diff --git a/app/views/restaurant.html b/app/views/restaurant.html index eca1943..f544a21 100644 --- a/app/views/restaurant.html +++ b/app/views/restaurant.html @@ -46,9 +46,9 @@

{{ restaurant.url | urlText }}

- +
- + {{ restaurant.name }}