I am currently involved in the task of creating pinterest, for example, thumbnails using the wookmark and angularjs plugin. On which I can display thumbnails using $ timeout 10 seconds, because the server takes time to respond. I wanted to call the layout after the data was fully loaded. I tried with a promise, but no luck.
Is there a way to invoke a Wookmark layout without using $ timeout?
my code supports:
myApp.controller("MyCtrl", ['$scope', '$timeout', 'eventData', function($scope, $timeout, eventData) { function init() { $scope.publicstreams = []; $scope.publicstreams = eventData.getEvent(0); $timeout(initWookmark, 10000); } function initWookmark() { var options = { autoResize: true,
Any help would be greatly appreciated!
source share