Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <label for="docPage">Doctor: </label>
- <select name="docPage" ng-model="group.doctor">
- <option ng-selected="PickDoctor(doctor)"
- ng-repeat="doctor in doctors"
- value="{{doctor.name}}">
- {{doctor.name}}
- </option>
- </select>
- self.PickDoctor=function(pDoctor)
- {
- doctor=pDoctor;
- console.log(doctor);
- }
- self.CreateGroup = function() {
- var group = new GroupClass(self.group.name, self.group.code, self.group.doctor,self.group.patient,self.group.usluga);
- group.doctor=doctor;
- group.patient=patient;
- group.usluga=usluga;
- groups.push(group);
Add Comment
Please, Sign In to add comment