mirror of
https://github.com/fergalmoran/dss.web.git
synced 2026-02-16 13:11:33 +00:00
20 lines
545 B
JavaScript
Executable File
20 lines
545 B
JavaScript
Executable File
'use strict';
|
|
|
|
angular.module('dssWebApp')
|
|
.controller('MixesCtrl', function ($scope, mixes, MixModel, AudioService) {
|
|
console.log("MixesCtrl", $scope);
|
|
$scope.mixes = mixes;
|
|
$scope.page = 1;
|
|
$scope.nextPage = function (e) {
|
|
$scope.page++;
|
|
MixModel.findAll({
|
|
page: $scope.page,
|
|
waveform_generated: "True",
|
|
is_featured: "True",
|
|
limit: 3
|
|
});
|
|
};
|
|
|
|
MixModel.bindAll(null, $scope, 'mixes');
|
|
});
|