<!DOCTYPE html> <html> <head> <script data-require="angular.js@*" data-semver="1.2.0-rc3-nonmin" src="http://code.angularjs.org/1.2.0-rc.3/angular.js"></script> <script data-require="ng-table@*" data-semver="0.3.1" src="http://bazalt-cms.com/assets/ng-table/0.3.1/ng-table.js"></script> <link data-require="ng-table@*" data-semver="0.3.1" rel="stylesheet" href="http://bazalt-cms.com/assets/ng-table/0.3.1/ng-table.css" /> <link data-require="bootstrap-css@*" data-semver="3.0.0" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" /> <link rel="stylesheet" href="style.css" /> <script src="script.js"></script> </head> <body ng-app="main"> <div ng-controller="DemoCtrl"> <div> <strong>Selected users:</strong> {{ data | filter:{"$selected": true} }} </div> <div class="row"> <div class="col-md-2"> <table ng-table="pointGuards" show-filter="true" class="table ng-table-rowselected"> <tr ng-repeat="user in $data" ng-class="{'active': user.$selected}"> <td data-title="'Point Guard'" sortable="'name'" filter="{ 'name': 'text' }" align="center"> <img src="http://i.cdn.turner.com/nba/nba/.element/img/2.0/sect/statscube/players/large/{{user.url}}.png" alt="{{user.name}}" ng-click="user.$selected = !user.$selected; changeSelection(user)" class="playerImage" /> <h4 class="playerName"><a href="http://www.nba.com/playerfile/{{user.url}}" target="_blank">{{user.name}}</a></h4> </td> </tr> </table> </div> <div class="col-md-2"> <table ng-table="shootingGuards" show-filter="true" class="table ng-table-rowselected"> <tr ng-repeat="user in $data" ng-class="{'active': user.$selected}"> <td data-title="'Shooting Guard'" sortable="'name'" filter="{ 'name': 'text' }" align="center"> <img src="http://i.cdn.turner.com/nba/nba/.element/img/2.0/sect/statscube/players/large/{{user.url}}.png" alt="{{user.name}}" ng-click="user.$selected = !user.$selected; changeSelection(user)" class="playerImage" /> <h4 class="playerName"><a href="http://www.nba.com/playerfile/{{user.url}}" target="_blank">{{user.name}}</a></h4> </td> </tr> </table> </div> <div class="col-md-2"> <table ng-table="smallForwards" show-filter="true" class="table ng-table-rowselected"> <tr ng-repeat="user in $data" ng-class="{'active': user.$selected}"> <td data-title="'Small Forward'" sortable="'name'" filter="{ 'name': 'text' }" align="center"> <img src="http://i.cdn.turner.com/nba/nba/.element/img/2.0/sect/statscube/players/large/{{user.url}}.png" alt="{{user.name}}" ng-click="user.$selected = !user.$selected; changeSelection(user)" class="playerImage" /> <h4 class="playerName"><a href="http://www.nba.com/playerfile/{{user.url}}" target="_blank">{{user.name}}</a></h4> </td> </tr> </table> </div> <div class="col-md-2"> <table ng-table="powerFowards" show-filter="true" class="table ng-table-rowselected"> <tr ng-repeat="user in $data" ng-class="{'active': user.$selected}"> <td data-title="'Power Foward'" sortable="'name'" filter="{ 'name': 'text' }" align="center"> <img src="http://i.cdn.turner.com/nba/nba/.element/img/2.0/sect/statscube/players/large/{{user.url}}.png" alt="{{user.name}}" ng-click="user.$selected = !user.$selected; changeSelection(user)" class="playerImage" /> <h4 class="playerName"><a href="http://www.nba.com/playerfile/{{user.url}}" target="_blank">{{user.name}}</a></h4> </td> </tr> </table> </div> <div class="col-md-2"> <table ng-table="centers" show-filter="true" class="table ng-table-rowselected"> <tr ng-repeat="user in $data" ng-class="{'active': user.$selected}"> <td data-title="'Center'" sortable="'name'" filter="{ 'name': 'text' }" align="center"> <img src="http://i.cdn.turner.com/nba/nba/.element/img/2.0/sect/statscube/players/large/{{user.url}}.png" alt="{{user.name}}" ng-click="user.$selected = !user.$selected; changeSelection(user)" class="playerImage" /> <h4 class="playerName"><a href="http://www.nba.com/playerfile/{{user.url}}" target="_blank">{{user.name}}</a></h4> </td> </tr> </table> </div> <div class="col-md-2"> <table ng-table="xFactor" show-filter="true" class="table ng-table-rowselected"> <tr ng-repeat="user in $data" ng-class="{'active': user.$selected}"> <td data-title="'X-Factor'" sortable="'name'" filter="{ 'name': 'text' }" align="center"> <img src="http://i.cdn.turner.com/nba/nba/.element/img/2.0/sect/statscube/players/large/{{user.url}}.png" alt="{{user.name}}" ng-click="user.$selected = !user.$selected; changeSelection(user)" class="playerImage" /> <h4 class="playerName"><a href="http://www.nba.com/playerfile/{{user.url}}" target="_blank">{{user.name}}</a></h4> </td> </tr> </table> </div> </div> </div> </body> </html>

var app = angular.module('main', ['ngTable']). controller('DemoCtrl', function ($scope, $filter, ngTableParams) { var data = [ { url:"quincy_acy", name:"quincy acy" }, { url:"steven_adams", name:"steven adams" }, { url:"jeff_adrien", name:"jeff adrien" }, { url:"arron_afflalo", name:"arron afflalo" }, { url:"alexis_ajinca", name:"alexis ajinca" }, { url:"cole_aldrich", name:"cole aldrich" }, { url:"lamarcus_aldridge", name:"lamarcus aldridge" }, { url:"lavoy_allen", name:"lavoy allen" }, { url:"ray_allen", name:"ray allen" }, { url:"tony_allen", name:"tony allen" }, { url:"al-farouq_aminu", name:"al-farouq aminu" }, { url:"lou_amundson", name:"lou amundson" }, { url:"chris_andersen", name:"chris andersen" }, { url:"alan_anderson", name:"alan anderson" }, { url:"james_anderson", name:"james anderson" }, { url:"ryan_j_anderson", name:"ryan j anderson" }, { url:"giannis_antetokounmpo", name:"giannis antetokounmpo" }, { url:"carmelo_anthony", name:"carmelo anthony" }, { url:"joel_anthony", name:"joel anthony" }, { url:"pero_antic", name:"pero antic" }, { url:"trevor_ariza", name:"trevor ariza" }, { url:"hilton_armstrong", name:"hilton armstrong" }, { url:"darrell_arthur", name:"darrell arthur" }, { url:"omer_asik", name:"omer asik" }, { url:"dj_augustin", name:"dj augustin" }, { url:"gustavo_ayon", name:"gustavo ayon" }, { url:"jeff_ayres", name:"jeff ayres" }, { url:"chris_babb", name:"chris babb" }, { url:"luke_babbitt", name:"luke babbitt" }, { url:"leandro_barbosa", name:"leandro barbosa" }, { url:"jose_barea", name:"jose barea" }, { url:"andrea_bargnani", name:"andrea bargnani" }, { url:"harrison_barnes", name:"harrison barnes" }, { url:"matt_barnes", name:"matt barnes" }, { url:"will_barton", name:"will barton" }, { url:"brandon_bass", name:"brandon bass" }, { url:"shane_battier", name:"shane battier" }, { url:"nicolas_batum", name:"nicolas batum" }, { url:"jerryd_bayless", name:"jerryd bayless" }, { url:"aron_baynes", name:"aron baynes" }, { url:"kent_bazemore", name:"kent bazemore" }, { url:"bradley_beal", name:"bradley beal" }, { url:"michael_beasley", name:"michael beasley" }, { url:"marco_belinelli", name:"marco belinelli" }, { url:"anthony_bennett", name:"anthony bennett" }, { url:"patrick_beverley", name:"patrick beverley" }, { url:"andris_biedrins", name:"andris biedrins" }, { url:"chauncey_billups", name:"chauncey billups" }, { url:"bismack_biyombo", name:"bismack biyombo" }, { url:"dejuan_blair", name:"dejuan blair" }, { url:"steve_blake", name:"steve blake" }, { url:"andray_blatche", name:"andray blatche" }, { url:"eric_bledsoe", name:"eric bledsoe" }, { url:"vander_blue", name:"vander blue" }, { url:"keith_bogans", name:"keith bogans" }, { url:"andrew_bogut", name:"andrew bogut" }, { url:"matt_bonner", name:"matt bonner" }, { url:"trevor_booker", name:"trevor booker" }, { url:"carlos_boozer", name:"carlos boozer" }, { url:"chris_bosh", name:"chris bosh" }, { url:"avery_bradley", name:"avery bradley" }, { url:"elton_brand", name:"elton brand" }, { url:"corey_brewer", name:"corey brewer" }, { url:"ronnie_brewer", name:"ronnie brewer" }, { url:"aaron_brooks", name:"aaron brooks" }, { url:"marshon_brooks", name:"marshon brooks" }, { url:"lorenzo_brown", name:"lorenzo brown" }, { url:"shannon_brown", name:"shannon brown" }, { url:"kobe_bryant", name:"kobe bryant" }, { url:"chase_budinger", name:"chase budinger" }, { url:"reggie_bullock", name:"reggie bullock" }, { url:"trey_burke", name:"trey burke" }, { url:"alec_burks", name:"alec burks" }, { url:"caron_butler", name:"caron butler" }, { url:"jimmy_butler", name:"jimmy butler" }, { url:"rasual_butler", name:"rasual butler" }, { url:"dwight_buycks", name:"dwight buycks" }, { url:"andrew_bynum", name:"andrew bynum" }, { url:"will_bynum", name:"will bynum" }, { url:"nick_calathes", name:"nick calathes" }, { url:"jose_calderon", name:"jose calderon" }, { url:"kentavious_caldwell-pope", name:"kentavious caldwell-pope" }, { url:"isaiah_canaan", name:"isaiah canaan" }, { url:"demarre_carroll", name:"demarre carroll" }, { url:"vince_carter", name:"vince carter" }, { url:"michael_carter-williams", name:"michael carter-williams" }, { url:"omri_casspi", name:"omri casspi" }, { url:"mario_chalmers", name:"mario chalmers" }, { url:"tyson_chandler", name:"tyson chandler" }, { url:"wilson_chandler", name:"wilson chandler" }, { url:"josh_childress", name:"josh childress" }, { url:"dionte_christmas", name:"dionte christmas" }, { url:"earl_clark", name:"earl clark" }, { url:"ian_clark", name:"ian clark" }, { url:"victor_claver", name:"victor claver" }, { url:"norris_cole", name:"norris cole" }, { url:"jason_collins", name:"jason collins" }, { url:"darren_collison", name:"darren collison" }, { url:"nick_collison", name:"nick collison" }, { url:"mike_conley", name:"mike conley" }, { url:"chris_copeland", name:"chris copeland" }, { url:"demarcus_cousins", name:"demarcus cousins" }, { url:"robert_covington", name:"robert covington" }, { url:"allen_crabbe", name:"allen crabbe" }, { url:"jamal_crawford", name:"jamal crawford" }, { url:"jordan_crawford", name:"jordan crawford" }, { url:"jae_crowder", name:"jae crowder" }, { url:"dante_cunningham", name:"dante cunningham" }, { url:"jared_cunningham", name:"jared cunningham" }, { url:"seth_curry", name:"seth curry" }, { url:"stephen_curry", name:"stephen curry" }, { url:"samuel_dalembert", name:"samuel dalembert" }, { url:"troy_daniels", name:"troy daniels" }, { url:"luigi_datome", name:"luigi datome" }, { url:"brandon_davies", name:"brandon davies" }, { url:"anthony_davis", name:"anthony davis" }, { url:"ed_davis", name:"ed davis" }, { url:"glen_davis", name:"glen davis" }, { url:"austin_daye", name:"austin daye" }, { url:"nando_de_colo", name:"nando de colo" }, { url:"demar_derozan", name:"demar derozan" }, { url:"dewayne_dedmon", name:"dewayne dedmon" }, { url:"carlos_delfino", name:"carlos delfino" }, { url:"matthew_dellavedova", name:"matthew dellavedova" }, { url:"luol_deng", name:"luol deng" }, { url:"boris_diaw", name:"boris diaw" }, { url:"gorgui_dieng", name:"gorgui dieng" }, { url:"toney_douglas", name:"toney douglas" }, { url:"chris_douglas-roberts", name:"chris douglas-roberts" }, { url:"goran_dragic", name:"goran dragic" }, { url:"andre_drummond", name:"andre drummond" }, { url:"jared_dudley", name:"jared dudley" }, { url:"tim_duncan", name:"tim duncan" }, { url:"mike_dunleavy", name:"mike dunleavy" }, { url:"kevin_durant", name:"kevin durant" }, { url:"shane_edwards", name:"shane edwards" }, { url:"wayne_ellington", name:"wayne ellington" }, { url:"monta_ellis", name:"monta ellis" }, { url:"jeremy_evans", name:"jeremy evans" }, { url:"reggie_evans", name:"reggie evans" }, { url:"tyreke_evans", name:"tyreke evans" }, { url:"festus_ezeli", name:"festus ezeli" }, { url:"kenneth_faried", name:"kenneth faried" }, { url:"jordan_farmar", name:"jordan farmar" }, { url:"vitor_faverani", name:"vitor faverani" }, { url:"derrick_favors", name:"derrick favors" }, { url:"carrick_felix", name:"carrick felix" }, { url:"raymond_felton", name:"raymond felton" }, { url:"landry_fields", name:"landry fields" }, { url:"derek_fisher", name:"derek fisher" }, { url:"evan_fournier", name:"evan fournier" }, { url:"randy_foye", name:"randy foye" }, { url:"jamaal_franklin", name:"jamaal franklin" }, { url:"jimmer_fredette", name:"jimmer fredette" }, { url:"joel_freeland", name:"joel freeland" }, { url:"channing_frye", name:"channing frye" }, { url:"danilo_gallinari", name:"danilo gallinari" }, { url:"francisco_garcia", name:"francisco garcia" }, { url:"kevin_garnett", name:"kevin garnett" }, { url:"diante_garrett", name:"diante garrett" }, { url:"marc_gasol", name:"marc gasol" }, { url:"pau_gasol", name:"pau gasol" }, { url:"rudy_gay", name:"rudy gay" }, { url:"alonzo_gee", name:"alonzo gee" }, { url:"paul_george", name:"paul george" }, { url:"taj_gibson", name:"taj gibson" }, { url:"emanuel_ginobili", name:"emanuel ginobili" }, { url:"rudy_gobert", name:"rudy gobert" }, { url:"ryan_gomes", name:"ryan gomes" }, { url:"drew_gooden", name:"drew gooden" }, { url:"archie_goodwin", name:"archie goodwin" }, { url:"ben_gordon", name:"ben gordon" }, { url:"eric_gordon", name:"eric gordon" }, { url:"marcin_gortat", name:"marcin gortat" }, { url:"danny_granger", name:"danny granger" }, { url:"aaron_gray", name:"aaron gray" }, { url:"daniel_green", name:"daniel green" }, { url:"draymond_green", name:"draymond green" }, { url:"gerald_green", name:"gerald green" }, { url:"jeff_green", name:"jeff green" }, { url:"willie_green", name:"willie green" }, { url:"blake_griffin", name:"blake griffin" }, { url:"jorge_gutierrez", name:"jorge gutierrez" }, { url:"jordan_hamilton", name:"jordan hamilton" }, { url:"justin_hamilton", name:"justin hamilton" }, { url:"tyler_hansbrough", name:"tyler hansbrough" }, { url:"timothy_hardaway", name:"timothy hardaway" }, { url:"james_harden", name:"james harden" }, { url:"maurice_harkless", name:"maurice harkless" }, { url:"josh_harrellson", name:"josh harrellson" }, { url:"al_harrington", name:"al harrington" }, { url:"devin_harris", name:"devin harris" }, { url:"elias_harris", name:"elias harris" }, { url:"manny_harris", name:"manny harris" }, { url:"mike_harris", name:"mike harris" }, { url:"tobias_harris", name:"tobias harris" }, { url:"udonis_haslem", name:"udonis haslem" }, { url:"spencer_hawes", name:"spencer hawes" }, { url:"chuck_hayes", name:"chuck hayes" }, { url:"gordon_hayward", name:"gordon hayward" }, { url:"brendan_haywood", name:"brendan haywood" }, { url:"gerald_henderson", name:"gerald henderson" }, { url:"xavier_henry", name:"xavier henry" }, { url:"john_henson", name:"john henson" }, { url:"roy_hibbert", name:"roy hibbert" }, { url:"jj_hickson", name:"jj hickson" }, { url:"george_hill", name:"george hill" }, { url:"jordan_hill", name:"jordan hill" }, { url:"solomon_hill", name:"solomon hill" }, { url:"kirk_hinrich", name:"kirk hinrich" }, { url:"jrue_holiday", name:"jrue holiday" }, { url:"ryan_hollins", name:"ryan hollins" }, { url:"scotty_hopson", name:"scotty hopson" }, { url:"al_horford", name:"al horford" }, { url:"dwight_howard", name:"dwight howard" }, { url:"robbie_hummel", name:"robbie hummel" }, { url:"kris_humphries", name:"kris humphries" }, { url:"serge_ibaka", name:"serge ibaka" }, { url:"andre_iguodala", name:"andre iguodala" }, { url:"ersan_ilyasova", name:"ersan ilyasova" }, { url:"kyrie_irving", name:"kyrie irving" }, { url:"royal_ivey", name:"royal ivey" }, { url:"jarrett_jack", name:"jarrett jack" }, { url:"reggie_jackson", name:"reggie jackson" }, { url:"stephen_jackson", name:"stephen jackson" }, { url:"bernard_james", name:"bernard james" }, { url:"lebron_james", name:"lebron james" }, { url:"mike_james", name:"mike james" }, { url:"antawn_jamison", name:"antawn jamison" }, { url:"othyus_jeffers", name:"othyus jeffers" }, { url:"al_jefferson", name:"al jefferson" }, { url:"richard_jefferson", name:"richard jefferson" }, { url:"john_jenkins", name:"john jenkins" }, { url:"brandon_jennings", name:"brandon jennings" }, { url:"jonas_jerebko", name:"jonas jerebko" }, { url:"amir_johnson", name:"amir johnson" }, { url:"christapher_johnson", name:"christapher johnson" }, { url:"james_johnson", name:"james johnson" }, { url:"joe_johnson", name:"joe johnson" }, { url:"orlando_johnson", name:"orlando johnson" }, { url:"wesley_johnson", name:"wesley johnson" }, { url:"darius_johnson-odom", name:"darius johnson-odom" }, { url:"james_jones", name:"james jones" }, { url:"perry_jones", name:"perry jones" }, { url:"solomon_jones", name:"solomon jones" }, { url:"terrence_jones", name:"terrence jones" }, { url:"deandre_jordan", name:"deandre jordan" }, { url:"cory_joseph", name:"cory joseph" }, { url:"chris_kaman", name:"chris kaman" }, { url:"enes_kanter", name:"enes kanter" }, { url:"sergey_karasev", name:"sergey karasev" }, { url:"ryan_kelly", name:"ryan kelly" }, { url:"michael_kidd-gilchrist", name:"michael kidd-gilchrist" }, { url:"andrei_kirilenko", name:"andrei kirilenko" }, { url:"brandon_knight", name:"brandon knight" }, { url:"kyle_korver", name:"kyle korver" }, { url:"kosta_koufos", name:"kosta koufos" }, { url:"viacheslav_kravtsov", name:"viacheslav kravtsov" }, { url:"ognjen_kuzmic", name:"ognjen kuzmic" }, { url:"doron_lamb", name:"doron lamb" }, { url:"jeremy_lamb", name:"jeremy lamb" }, { url:"carl_landry", name:"carl landry" }, { url:"shane_larkin", name:"shane larkin" }, { url:"ty_lawson", name:"ty lawson" }, { url:"ricardo_ledo", name:"ricardo ledo" }, { url:"courtney_lee", name:"courtney lee" }, { url:"david_lee", name:"david lee" }, { url:"alex_len", name:"alex len" }, { url:"kawhi_leonard", name:"kawhi leonard" }, { url:"meyers_leonard", name:"meyers leonard" }, { url:"jon_leuer", name:"jon leuer" }, { url:"rashard_lewis", name:"rashard lewis" }, { url:"deandre_liggins", name:"deandre liggins" }, { url:"damian_lillard", name:"damian lillard" }, { url:"jeremy_lin", name:"jeremy lin" }, { url:"shaun_livingston", name:"shaun livingston" }, { url:"brook_lopez", name:"brook lopez" }, { url:"robin_lopez", name:"robin lopez" }, { url:"kevin_love", name:"kevin love" }, { url:"kyle_lowry", name:"kyle lowry" }, { url:"john_iii_lucas", name:"john iii lucas" }, { url:"shelvin_mack", name:"shelvin mack" }, { url:"ian_mahinmi", name:"ian mahinmi" }, { url:"shawn_marion", name:"shawn marion" }, { url:"kendall_marshall", name:"kendall marshall" }, { url:"cartier_martin", name:"cartier martin" }, { url:"kenyon_martin", name:"kenyon martin" }, { url:"kevin_martin", name:"kevin martin" }, { url:"roger_mason-jr", name:"roger mason-jr" }, { url:"wesley_matthews", name:"wesley matthews" }, { url:"jason_maxiell", name:"jason maxiell" }, { url:"eric_maynor", name:"eric maynor" }, { url:"oj_mayo", name:"oj mayo" }, { url:"luc_mbah_a_moute", name:"luc mbah a moute" }, { url:"ray_mccallum", name:"ray mccallum" }, { url:"cj_mccollum", name:"cj mccollum" }, { url:"javale_mcgee", name:"javale mcgee" }, { url:"ben_mclemore", name:"ben mclemore" }, { url:"josh_mcroberts", name:"josh mcroberts" }, { url:"jodie_meeks", name:"jodie meeks" }, { url:"gal_mekel", name:"gal mekel" }, { url:"khris_middleton", name:"khris middleton" }, { url:"cj_miles", name:"cj miles" }, { url:"andre_miller", name:"andre miller" }, { url:"darius_miller", name:"darius miller" }, { url:"mike_miller", name:"mike miller" }, { url:"quincy_miller", name:"quincy miller" }, { url:"patrick_mills", name:"patrick mills" }, { url:"paul_millsap", name:"paul millsap" }, { url:"tony_mitchell", name:"tony mitchell" }, { url:"tony_l_mitchell", name:"tony l mitchell" }, { url:"nazr_mohammed", name:"nazr mohammed" }, { url:"greg_monroe", name:"greg monroe" }, { url:"etwaun_moore", name:"etwaun moore" }, { url:"darius_morris", name:"darius morris" }, { url:"marcus_morris", name:"marcus morris" }, { url:"markieff_morris", name:"markieff morris" }, { url:"anthony_morrow", name:"anthony morrow" }, { url:"donatas_motiejunas", name:"donatas motiejunas" }, { url:"arnett_moultrie", name:"arnett moultrie" }, { url:"timofey_mozgov", name:"timofey mozgov" }, { url:"shabazz_muhammad", name:"shabazz muhammad" }, { url:"byron_mullens", name:"byron mullens" }, { url:"erik_murphy", name:"erik murphy" }, { url:"toure_murry", name:"toure murry" }, { url:"mike_muscala", name:"mike muscala" }, { url:"nene", name:"nene" }, { url:"steve_nash", name:"steve nash" }, { url:"hamady_ndiaye", name:"hamady ndiaye" }, { url:"gary_neal", name:"gary neal" }, { url:"nemanja_nedovic", name:"nemanja nedovic" }, { url:"jameer_nelson", name:"jameer nelson" }, { url:"andrew_nicholson", name:"andrew nicholson" }, { url:"joakim_noah", name:"joakim noah" }, { url:"nerlens_noel", name:"nerlens noel" }, { url:"steve_novak", name:"steve novak" }, { url:"dirk_nowitzki", name:"dirk nowitzki" }, { url:"james_nunnally", name:"james nunnally" }, { url:"jermaine_oneal", name:"jermaine oneal" }, { url:"kyle_oquinn", name:"kyle oquinn" }, { url:"greg_oden", name:"greg oden" }, { url:"emeka_okafor", name:"emeka okafor" }, { url:"victor_oladipo", name:"victor oladipo" }, { url:"kelly_olynyk", name:"kelly olynyk" }, { url:"arinze_onuaku", name:"arinze onuaku" }, { url:"daniel_orton", name:"daniel orton" }, { url:"travis_outlaw", name:"travis outlaw" }, { url:"zaza_pachulia", name:"zaza pachulia" }, { url:"jannero_pargo", name:"jannero pargo" }, { url:"tony_parker", name:"tony parker" }, { url:"chandler_parsons", name:"chandler parsons" }, { url:"patrick_patterson", name:"patrick patterson" }, { url:"chris_paul", name:"chris paul" }, { url:"nikola_pekovic", name:"nikola pekovic" }, { url:"kendrick_perkins", name:"kendrick perkins" }, { url:"paul_pierce", name:"paul pierce" }, { url:"dexter_pittman", name:"dexter pittman" }, { url:"mason_plumlee", name:"mason plumlee" }, { url:"miles_plumlee", name:"miles plumlee" }, { url:"quincy_pondexter", name:"quincy pondexter" }, { url:"otto_porter", name:"otto porter" }, { url:"phil_pressey", name:"phil pressey" }, { url:"aj_price", name:"aj price" }, { url:"ronnie_price", name:"ronnie price" }, { url:"pablo_prigioni", name:"pablo prigioni" }, { url:"tayshaun_prince", name:"tayshaun prince" }, { url:"miroslav_raduljica", name:"miroslav raduljica" }, { url:"anthony_randolph", name:"anthony randolph" }, { url:"shavlik_randolph", name:"shavlik randolph" }, { url:"zach_randolph", name:"zach randolph" }, { url:"jj_redick", name:"jj redick" }, { url:"willie_reed", name:"willie reed" }, { url:"glen_rice_jr", name:"glen rice jr" }, { url:"jason_richardson", name:"jason richardson" }, { url:"luke_ridnour", name:"luke ridnour" }, { url:"austin_rivers", name:"austin rivers" }, { url:"andre_roberson", name:"andre roberson" }, { url:"brian_roberts", name:"brian roberts" }, { url:"nate_robinson", name:"nate robinson" }, { url:"thomas_robinson", name:"thomas robinson" }, { url:"rajon_rondo", name:"rajon rondo" }, { url:"derrick_rose", name:"derrick rose" }, { url:"terrence_ross", name:"terrence ross" }, { url:"ricky_rubio", name:"ricky rubio" }, { url:"brandon_rush", name:"brandon rush" }, { url:"robert_sacre", name:"robert sacre" }, { url:"john_salmons", name:"john salmons" }, { url:"larry_sanders", name:"larry sanders" }, { url:"dennis_schroder", name:"dennis schroder" }, { url:"luis_scola", name:"luis scola" }, { url:"mike_scott", name:"mike scott" }, { url:"thabo_sefolosha", name:"thabo sefolosha" }, { url:"kevin_seraphin", name:"kevin seraphin" }, { url:"ramon_sessions", name:"ramon sessions" }, { url:"mustafa_shakur", name:"mustafa shakur" }, { url:"tornike_shengelia", name:"tornike shengelia" }, { url:"iman_shumpert", name:"iman shumpert" }, { url:"alexey_shved", name:"alexey shved" }, { url:"henry_sims", name:"henry sims" }, { url:"kyle_singler", name:"kyle singler" }, { url:"chris_singleton", name:"chris singleton" }, { url:"peyton_siva", name:"peyton siva" }, { url:"donald_sloan", name:"donald sloan" }, { url:"chris_smith", name:"chris smith" }, { url:"greg_smith", name:"greg smith" }, { url:"ish_smith", name:"ish smith" }, { url:"jr_smith", name:"jr smith" }, { url:"jason_smith", name:"jason smith" }, { url:"josh_smith", name:"josh smith" }, { url:"tony_snell", name:"tony snell" }, { url:"james_southerland", name:"james southerland" }, { url:"marreese_speights", name:"marreese speights" }, { url:"tiago_splitter", name:"tiago splitter" }, { url:"dj_stephens", name:"dj stephens" }, { url:"lance_stephenson", name:"lance stephenson" }, { url:"greg_stiemsma", name:"greg stiemsma" }, { url:"julyan_stone", name:"julyan stone" }, { url:"amare_stoudemire", name:"amare stoudemire" }, { url:"rodney_stuckey", name:"rodney stuckey" }, { url:"jared_sullinger", name:"jared sullinger" }, { url:"jeff_taylor", name:"jeff taylor" }, { url:"tyshawn_taylor", name:"tyshawn taylor" }, { url:"jeff_teague", name:"jeff teague" }, { url:"marquis_teague", name:"marquis teague" }, { url:"mirza_teletovic", name:"mirza teletovic" }, { url:"garrett_temple", name:"garrett temple" }, { url:"jason_terry", name:"jason terry" }, { url:"hasheem_thabeet", name:"hasheem thabeet" }, { url:"adonis_thomas", name:"adonis thomas" }, { url:"isaiah_thomas", name:"isaiah thomas" }, { url:"lance_thomas", name:"lance thomas" }, { url:"malcolm_thomas", name:"malcolm thomas" }, { url:"hollis_thompson", name:"hollis thompson" }, { url:"jason_thompson", name:"jason thompson" }, { url:"klay_thompson", name:"klay thompson" }, { url:"tristan_t_thompson", name:"tristan t thompson" }, { url:"marcus_thornton", name:"marcus thornton" }, { url:"jamaal_tinsley", name:"jamaal tinsley" }, { url:"anthony_tolliver", name:"anthony tolliver" }, { url:"pj_tucker", name:"pj tucker" }, { url:"ronny_turiaf", name:"ronny turiaf" }, { url:"hidayet_turkoglu", name:"hidayet turkoglu" }, { url:"evan_turner", name:"evan turner" }, { url:"jeremy_tyler", name:"jeremy tyler" }, { url:"ekpe_udoh", name:"ekpe udoh" }, { url:"beno_udrih", name:"beno udrih" }, { url:"jonas_valanciunas", name:"jonas valanciunas" }, { url:"anderson_varejao", name:"anderson varejao" }, { url:"jarvis_varnado", name:"jarvis varnado" }, { url:"greivis_vasquez", name:"greivis vasquez" }, { url:"jan_vesely", name:"jan vesely" }, { url:"charlie_villanueva", name:"charlie villanueva" }, { url:"nikola_vucevic", name:"nikola vucevic" }, { url:"sasha_vujacic", name:"sasha vujacic" }, { url:"dwyane_wade", name:"dwyane wade" }, { url:"dion_waiters", name:"dion waiters" }, { url:"kemba_walker", name:"kemba walker" }, { url:"john_wall", name:"john wall" }, { url:"gerald_wallace", name:"gerald wallace" }, { url:"casper_ware", name:"casper ware" }, { url:"cj_watson", name:"cj watson" }, { url:"earl_watson", name:"earl watson" }, { url:"maalik_wayns", name:"maalik wayns" }, { url:"martell_webster", name:"martell webster" }, { url:"david_west", name:"david west" }, { url:"russell_westbrook", name:"russell westbrook" }, { url:"dj_white", name:"dj white" }, { url:"royce_white", name:"royce white" }, { url:"deron_williams", name:"deron williams" }, { url:"derrick_williams", name:"derrick williams" }, { url:"elliot_williams", name:"elliot williams" }, { url:"louis_williams", name:"louis williams" }, { url:"marvin_williams", name:"marvin williams" }, { url:"maurice_williams", name:"maurice williams" }, { url:"reggie_williams", name:"reggie williams" }, { url:"shawne_williams", name:"shawne williams" }, { url:"jeff_withey", name:"jeff withey" }, { url:"nate_wolters", name:"nate wolters" }, { url:"metta_world_peace", name:"metta world peace" }, { url:"brandan_wright", name:"brandan wright" }, { url:"chris_wright", name:"chris wright" }, { url:"dorell_wright", name:"dorell wright" }, { url:"tony_wroten", name:"tony wroten" }, { url:"nick_young", name:"nick young" }, { url:"thaddeus_young", name:"thaddeus young" }, { url:"cody_zeller", name:"cody zeller" }, { url:"tyler_zeller", name:"tyler zeller" } ]; $scope.data = data; $scope.pointGuards = new ngTableParams({ page: 1, // show first page count: 3, // count per page filter: { //name: 'M' // initial filter }, sorting: { //age: '7' // initial sorting } }, { total: data.length, // length of data getData: function ($defer, params) { // use build-in angular filter var filteredData = params.filter() ? $filter('filter')(data, params.filter()) : data; var orderedData = params.sorting() ? $filter('orderBy')(filteredData, params.orderBy()) : data; params.total(orderedData.length); // set total for recalc pagination $defer.resolve(orderedData.slice((params.page() - 1) * params.count(), params.page() * params.count())); } }); $scope.shootingGuards = new ngTableParams({ page: 1, // show first page count: 3, // count per page filter: { //name: 'M' // initial filter }, sorting: { //name: 'asc' // initial sorting } }, { total: data.length, // length of data getData: function ($defer, params) { // use build-in angular filter var filteredData = params.filter() ? $filter('filter')(data, params.filter()) : data; var orderedData = params.sorting() ? $filter('orderBy')(filteredData, params.orderBy()) : data; params.total(orderedData.length); // set total for recalc pagination $defer.resolve(orderedData.slice((params.page() - 1) * params.count(), params.page() * params.count())); } }); $scope.smallForwards = new ngTableParams({ page: 1, // show first page count: 3, // count per page filter: { //name: 'M' // initial filter }, sorting: { //name: 'asc' // initial sorting } }, { total: data.length, // length of data getData: function ($defer, params) { // use build-in angular filter var filteredData = params.filter() ? $filter('filter')(data, params.filter()) : data; var orderedData = params.sorting() ? $filter('orderBy')(filteredData, params.orderBy()) : data; params.total(orderedData.length); // set total for recalc pagination $defer.resolve(orderedData.slice((params.page() - 1) * params.count(), params.page() * params.count())); } }); $scope.powerFowards = new ngTableParams({ page: 1, // show first page count: 3, // count per page filter: { //name: 'M' // initial filter }, sorting: { //name: 'asc' // initial sorting } }, { total: data.length, // length of data getData: function ($defer, params) { // use build-in angular filter var filteredData = params.filter() ? $filter('filter')(data, params.filter()) : data; var orderedData = params.sorting() ? $filter('orderBy')(filteredData, params.orderBy()) : data; params.total(orderedData.length); // set total for recalc pagination $defer.resolve(orderedData.slice((params.page() - 1) * params.count(), params.page() * params.count())); } }); $scope.centers = new ngTableParams({ page: 1, // show first page count: 3, // count per page filter: { //name: 'M' // initial filter }, sorting: { //name: 'asc' // initial sorting } }, { total: data.length, // length of data getData: function ($defer, params) { // use build-in angular filter var filteredData = params.filter() ? $filter('filter')(data, params.filter()) : data; var orderedData = params.sorting() ? $filter('orderBy')(filteredData, params.orderBy()) : data; params.total(orderedData.length); // set total for recalc pagination $defer.resolve(orderedData.slice((params.page() - 1) * params.count(), params.page() * params.count())); } }); $scope.xFactor = new ngTableParams({ page: 1, // show first page count: 3, // count per page filter: { //name: 'M' // initial filter }, sorting: { //age: '7' // initial sorting } }, { total: data.length, // length of data getData: function ($defer, params) { // use build-in angular filter var filteredData = params.filter() ? $filter('filter')(data, params.filter()) : data; var orderedData = params.sorting() ? $filter('orderBy')(filteredData, params.orderBy()) : data; params.total(orderedData.length); // set total for recalc pagination $defer.resolve(orderedData.slice((params.page() - 1) * params.count(), params.page() * params.count())); } }); $scope.changeSelection = function(user) { // console.info(user); } });