PageSourceSearch

https://www.alejandrosanz.com/modules/album/index/indexAlbumCtrl.js

js alejandrosanz.com collected 2026-10-02 07:16:49 UTC 492 bytes, 17 lines download raw bytes

1'use strict';
2
3angular.module('alejandrosanz').controller("IndexAlbumCtrl", ['$scope', 'Album', '$state', '$alert', '$rootScope', function($scope, Album, $state, $alert, $rootScope) {
4
5  Album.query(function(res) {
6    $scope.albums = res;
7    $scope.albums.map(function(a) {
8      a.date = new Date(a.date);
9    })
10  }, $alert.showError);
11
12  $scope.openAlbum = function(a) {
13    name = $rootScope.makeUriFriendly(a.name);
14    $state.go('app.showAlbums', { id: a.id, name: name });
15  }
16
17}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.