Priti_P 0 Junior Poster

Hello,
I am newbie in AngularJS.
I had query about fetching data and storing in angularJS's variable.
I have table where all employees are stored.
Now, what I want is show dropdown of these employees.
i.e
fetch values from Database and store into variable of module which i can use further.
I have used this with static variable/array
but not able to do using connectivity of DB.

I dont want to update that table just need to fetch data from it.
Can anybody help me?

angular.module("employeeModule", [])
  .controller("employeeController", function ($scope)
  {
   /* LIKE THIS VARIBALE STORES ALL EMPLOYEES INFO WHICH CAN BE THEN
   USED IN LOOP IN VIEW */
    $scope.employees = { };

  });