Commit 537b60201bb2724b3bdabe7a73e753fd3f5ef2b7

Authored by Amrita Vishnoi
1 parent c0ab4784

Able to bind data with ng-repeat for all tile views

150-DOCUMENTATION/Scrum/AIA_DailyScrum.xlsx
No preview for this file type
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -25,7 +25,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod @@ -25,7 +25,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod
25 25
26 .then( 26 .then(
27 function (result) { 27 function (result) {
28 - $scope.moduleLandingData = result; 28 + $scope.moduleLandingData = result;
29 29
30 console.log(JSON.stringify(result, null, 4)); 30 console.log(JSON.stringify(result, null, 4));
31 }, 31 },
400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js
@@ -27,7 +27,7 @@ AIA.service('ModuleService', function($http, DataService) { @@ -27,7 +27,7 @@ AIA.service('ModuleService', function($http, DataService) {
27 .from(response.data.root.Item) 27 .from(response.data.root.Item)
28 .orderBy([{ field: '_Title', sort: 'asc' }]) 28 .orderBy([{ field: '_Title', sort: 'asc' }])
29 .select(); 29 .select();
30 - console.log(JSON.stringify(response, null, 4)); 30 + console.log(JSON.stringify(response, null, 4));
31 response.data= moduleData; 31 response.data= moduleData;
32 return response.data; 32 return response.data;
33 }); 33 });
400-SOURCECODE/AIAHTML5.Web/app/views/tile-view.html
@@ -58,28 +58,38 @@ @@ -58,28 +58,38 @@
58 <div class="row tab-content" style="padding-left:25px; width:99%"> 58 <div class="row tab-content" style="padding-left:25px; width:99%">
59 <!--<div role="tabpanel" class="tab-pane active" id="grid-view">--> 59 <!--<div role="tabpanel" class="tab-pane active" id="grid-view">-->
60 <div role="tabpanel" id="grid-view"> 60 <div role="tabpanel" id="grid-view">
61 - <!--<div ng-if="!filterstring" ng-repeat="item in selectedCIListViewData">  
62 - <div id="{{item._id}}" class="col-sm-3 col-lg-2" title="{{item._Title}}" data-ng-click="openView($event)"> 61 + <div ng-repeat="(key,val) in moduleLandingData.data.root.Item">
  62 + <div id="{{val._Id}}" class="col-sm-3 col-md-3" title="{{val._Title}}" data-ng-click="openModuleItem()">
63 <div class="thumbnail"> 63 <div class="thumbnail">
64 - <img ng-src="~ /../content/images/ci/thumbnails/{{item._ThumbnailImage}}" alt="" title="">  
65 - <div class="caption">  
66 - <p>{{item._Title}}</p>  
67 - </div> 64 + <img class="tinyImg" id="{{val._Title}}" ng-src="../content/images/aa/thumbnails/{{val._TileImageName}}" alt="" title="">
  65 + <div class="caption"><p>{{val._Title}}</p></div>
68 </div> 66 </div>
69 </div> 67 </div>
  68 +
  69 +
  70 + <!--<div ng-if="!filterstring" ng-repeat="item in selectedCIListViewData">
  71 + <div id="{{item._id}}" class="col-sm-3 col-lg-2" title="{{item._Title}}" data-ng-click="openView($event)">
  72 + <div class="thumbnail">
  73 + <img ng-src="~ /../content/images/ci/thumbnails/{{item._ThumbnailImage}}" alt="" title="">
  74 + <div class="caption">
  75 + <p>{{item._Title}}</p>
  76 + </div>
70 </div> 77 </div>
  78 + </div>
  79 + </div>
71 80
72 - <div ng-if="filterstring" ng-repeat="item in searchCIListViewData">  
73 - <div id="{{item._id}}" class="col-sm-3 col-lg-2" title="{{item._Title}}" data-ng-click="openView($event)">  
74 - <div class="thumbnail">  
75 - <img ng-src="~ /../content/images/ci/thumbnails/{{item._ThumbnailImage}}" alt="" title="">  
76 - <div class="caption">  
77 - <p>{{item._Title}}</p>  
78 - </div>  
79 - </div> 81 + <div ng-if="filterstring" ng-repeat="item in searchCIListViewData">
  82 + <div id="{{item._id}}" class="col-sm-3 col-lg-2" title="{{item._Title}}" data-ng-click="openView($event)">
  83 + <div class="thumbnail">
  84 + <img ng-src="~ /../content/images/ci/thumbnails/{{item._ThumbnailImage}}" alt="" title="">
  85 + <div class="caption">
  86 + <p>{{item._Title}}</p>
80 </div> 87 </div>
81 - </div>--> 88 + </div>
82 </div> 89 </div>
  90 + </div>-->
  91 + </div>
  92 + </div>
83 <!--<div role="tabpanel" class="tab-pane" id="list-view">--> 93 <!--<div role="tabpanel" class="tab-pane" id="list-view">-->
84 <div role="tabpanel" ng-class="{'tab-pane active' : activeTab === 2,'tab-pane' : activeTab !==2 }" id="list-view"> 94 <div role="tabpanel" ng-class="{'tab-pane active' : activeTab === 2,'tab-pane' : activeTab !==2 }" id="list-view">
85 <!--<div class="col-sm-12 table-responsive">--> 95 <!--<div class="col-sm-12 table-responsive">-->