'use strict'; AIA.controller("TinyViewListController", ["$scope", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "Modules", "$routeParams", "DataService", function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, Modules, $routeParam, DataService) { var ATLAS_ANATOMY = 'Atlas Anatomy'; var CLINICAL_ILLUSTRATION ='Clinical Illustrations'; var CLINICAL_ANIMATION='Clinical Animations'; $scope.loadForModuleById = function (moduleId) { var moduleName = Modules[moduleId].Name; $scope.loadDataForModule(moduleName); } $scope.loadDataForModule = function(moduleName) { if(moduleName==ATLAS_ANATOMY) { var promise = DataService.getJson('~/../content/data/json/aa/aa_dat_contentlist.json') promise.then( function (result) { $scope.AtlasAnatomyData = result; $scope.data = new jinqJs() .from($scope.AtlasAnatomyData.root.Item) .orderBy([{ field: '_Title', sort: 'asc' }]) .select(); //console.log($scope.selectedCIListViewData); //$('#grid-view').empty(); angular.forEach($scope.data, function (value, key) { $scope.imagePath = "~/../content/images/aa/thumbnails/" + value._TinyImageName; var $el = $('
' + value._Title + '