<file_sep>var apl = angular.module('apl', []);<file_sep>AppdevPremierLeague
===================
<file_sep>apl.factory('data', function(){
  var listOfPlayers = [
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'I am a good opener. I can provide a good start to the team. Also I am a good fielder.',
      image: 'images/team/sachin.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'NA',
      image: 'images/team/sachin.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'I am a good opener. I can provide a good start to the team. Also I am a good fielder.',
      image: 'images/team/sachin.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'I have dropped all the catches that ever came to me. Planning to write a book on How To Catch',
      image: 'images/team/abhisheknalwaya.png'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'Primarily a Batsman, can bowl few spin, medium pace overs as well.',
      image: 'images/team/sachin.jpg'
    },
    // {
    //   name: '<NAME>',
    //   bats: true,
    //   bowls: true,
    //   team: '',
    //   cost:100,
    //   sold: false,
    //   active: true,
    //   description: 'Played at college level.',
    //   image: 'image/sachin.jpg'
    // },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'You know me well. Super fitness with exceptional fielding and bowling. Dare to have a face off :)',
      image: 'images/team/akshaygupta.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'Left Arm Fast Bowler',
      image: 'images/team/akshaya.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'Can Catch the ball with eyes closed apart from brilliant batting and bowling',
      image: 'images/team/aman.jpg'
    },
     {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'I was member of Cricket team in my previous organization & used to open the innings. Can bowl medium pace as well.',
      image: 'images/team/sachin.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'Love to Open.',
      image: 'images/team/arpit.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'With win win attitude I ensure I fight to win till the last ball is bowled be it batting, bowling or fielding, My contribution will always be more than 100%.',
      image: 'images/team/manchanda.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'I love to play cricket',
      image: 'images/team/Awanish.jpg'
    },
    {
      name: 'Biju',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'Can hit sixes as much as the team wants. Get opposition teams top order batsmen out at will!',
      image: 'images/team/biju.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'Played at college level.',
      image: 'images/team/sachin.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'NA',
      image: 'images/team/sachin.jpg'
    },    
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'Opening Batsman and Medium pace part time bowler. Good fielding and catching skills.',
      image: 'images/team/sachin.jpg'
    },    
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'I Bat defensively and very slowly for hours. I bowl even slower but get batsmen caught out on the boundary(sometimes). I field ok and do not let go of any catches and I do not misfield!',
      image: 'images/team/jyoti.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'NA',
      image: 'images/team/karanarora.jpg'
    },
    // {
    //   name: '<NAME>',
    //   bats: true,
    //   bowls: true,
    //   team: '',
    //   cost:100,
    //   sold: false,
    //   active: true,
    //   description: 'NA',
    //   image: 'image/sachin.jpg'
    // },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'NA',
      image: 'images/team/sachin.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'NA',
      image: 'images/team/sachin.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'Currently training in South Africa with the team that defeated India. Highly motivated player with impeccable track record in gully cricket.',
      image: 'images/team/sachin.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'NA',
      image: 'images/team/pankajarora.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'Right Arm Medium Bowler, Right Hand Batsmen. Played for MSO XI  and won the third position in the last Mckinsey Cricket League.',
      image: 'images/team/sachin.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'I am a medium fast bowler and mid level batsman. I like playing in pressure situations and could come handy.',
      image: 'images/team/sachin.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'I am passionate about cricket. I am a bowler but appdev players treat me as batsman , now I am all rounder',
      image: 'images/team/prayag.png'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'I play as a fast bowler in team and usually bat at number 4-5',
      image: 'images/team/sachin.jpg'
    },
    {
      name: 'Ranjeet',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'NA',
      image: 'images/team/sachin.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'NA',
      image: 'images/team/sanjeev.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost: 100,
      sold: false,
      active: true,
      description: 'Bowler',
      image: 'images/team/sanjeevmishra.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'Like my favourite language Ruby, I blend sound base technique along with scope of great flexibility.',
      image: 'images/team/shadab.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'A batsman who can bowl and a bolwer who can bat.',
      image: 'images/team/siddharth.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'NA',
      image: 'images/team/sourabhgupta.jpg'
    },    
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost:100,
      sold: false,
      active: true,
      description: 'A solid WicketKeeper',
      image: 'images/team/sumitjolly.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost: 100,
      sold: false,
      active: true,
      description: 'NA',
      image: 'images/team/sachin.jpg'
    },
    {
      name: '<NAME>',
      bats: true,
      bowls: true,
      team: '',
      cost: 100,
      sold: false,
      active: true,
      description: 'Although I have last played cricket long ago, I had been the best bowler of my colony Team and very good batsman as well. I have mostly played with Tennis ball(Flash and Mark ball) and sometimes with leather',
      image: 'images/team/sachin.jpg'
    }
  ];

  function saveListOfPlayers(players){
    localStorage.setItem('players', JSON.stringify(players));
  }

  function getListOfPlayers(){
    return JSON.parse(localStorage.getItem('players')) || listOfPlayers;
  }

  return {
    getListOfPlayers: getListOfPlayers,
    saveListOfPlayers : saveListOfPlayers
  }
});