I have an array of books in my model :
(function() {
var app = angular.module("googleBooksViewer", []);
var mainController = function($scope, $http) {
$scope.search = function(bookname) {
$http.get("https://www.googleapis.com/books/v1/volumes?q=" + bookname)
.then(function(response) {
$scope.books = response.data;
});
};
};
app.controller("mainController", mainController);
})();
I know i can use ng-repeat to present book thumbnails as a list but i want it to fill the screen with a table of 8 thumbnails per row.
Is there a way to do that in my view html, Or do i must create the 2d array in my model ?