client/app/slideshow/slideshow_controller.js
author rougeronj
Fri, 22 May 2015 12:37:37 +0200
changeset 90 faf2cdb47813
parent 67 bc8fb175f4d9
child 99 c7c424e9eed5
permissions -rw-r--r--
remove "comment" from the model. Copy the 'comment' field of Jamespot in the 'description' field of the model instead

(function(){
	'use strict';

	angular.module('ammicoSlideshow',['ngResource', 'ngRoute', 'ui.bootstrap'])
	.controller('slideshowCtrl', function($scope, ammicoApi, $routeParams){
		$scope.slideshow = ammicoApi.booksSlides.query({idBook:$routeParams.iSlide, format:'json'}, function(data){
			data = ammicoApi.sanitizeUrls(data);
		});
		$scope.book = ammicoApi.book.get({idBook:$routeParams.iSlide, format:'json'});
	});
})();