다음과 같이 field order option 추가하고, 쿼리 스트링을 넘겨서 정렬할 수 있게 만듦
정렬 비활성화 (이전 버전에서 이와 같이 작동)
<table-view-with-pager
ng-model="dataResult"
ng-total-count="numTotalCount"
ng-items-per-page="numPageSize"
ng-page-size="numPagerPageSize"| /* let keyword를 이용한 해결 */ | |
| var fns = []; | |
| for (let i=0; i<3; i++) { | |
| fns[i] = function() { | |
| console.log('My value:' + i); | |
| } | |
| } | |
| for (var j=0; j<3; j++) { | |
| fns[j](); |
| table.table-learnco td, table.table-learnco th { | |
| font-size: 1.2em; | |
| border: 1px solid silver; | |
| padding: .5em; | |
| } | |
| table.table-schedule td { | |
| white-space: nowrap; | |
| } |
| function extractColumn(arr, column) { | |
| function reduction(previousValue, currentValue) { | |
| previousValue.push(currentValue[column]); | |
| return previousValue; | |
| } | |
| return arr.reduce(reduction, []); | |
| } |
| // service(factory) | |
| logpresso.factory('serviceMovie', function(socket) { | |
| var isready = false; | |
| var list = []; | |
| function get() { | |
| return new Async(function() { | |
| var self = this; |
다음과 같이 field order option 추가하고, 쿼리 스트링을 넘겨서 정렬할 수 있게 만듦
정렬 비활성화 (이전 버전에서 이와 같이 작동)
<table-view-with-pager
ng-model="dataResult"
ng-total-count="numTotalCount"
ng-items-per-page="numPageSize"
ng-page-size="numPagerPageSize"| { | |
| "chart": { | |
| "type": "line", | |
| "animation": true, | |
| "reflow": false | |
| }, | |
| "colors": [ | |
| "#A186BE" | |
| ], | |
| "title": { |
| { | |
| "chart": { | |
| "type": "line", | |
| "animation": true, | |
| "reflow": false | |
| }, | |
| "colors": [ | |
| "#A186BE" | |
| ], | |
| "title": { |
| define(['dependency'], function(Dependency) | |
| { | |
| console.log("Dependency loaded", Dependency); | |
| }); |