Guest User

Untitled

a guest
Nov 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <label for="docPage">Doctor: </label>
  2. <select name="docPage" ng-model="group.doctor">
  3. <option ng-selected="PickDoctor(doctor)"
  4. ng-repeat="doctor in doctors"
  5. value="{{doctor.name}}">
  6. {{doctor.name}}
  7. </option>
  8. </select>
  9.  
  10. self.PickDoctor=function(pDoctor)
  11. {
  12. doctor=pDoctor;
  13. console.log(doctor);
  14. }
  15.  
  16. self.CreateGroup = function() {
  17. var group = new GroupClass(self.group.name, self.group.code, self.group.doctor,self.group.patient,self.group.usluga);
  18. group.doctor=doctor;
  19. group.patient=patient;
  20. group.usluga=usluga;
  21. groups.push(group);
Add Comment
Please, Sign In to add comment