client/app/slideshow/slideshow_controller.js
author rougeronj
Wed, 08 Apr 2015 00:39:23 +0200
changeset 79 1be5cc51e359
parent 67 bc8fb175f4d9
child 99 c7c424e9eed5
permissions -rw-r--r--
Add url to access main page of the project and gulp "copy-server" to copy the ammico app to the server

(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'});
	});
})();