MK
Size: a a a
MK
AK
MK
<select title="" class="form-control"
ng-model="appointment.clinic_id"
ng-change="updateContact()"
ng-options="cl.id as cl.name for cl in clinics.$$state.value track by cl.id">
<option ng-selected="true" value="">Не задано</option>
</select>
application.controller('myCtrl',function ($scope,contactsService, helper) {
contactsService.refresh();
$scope.contacts = contactsService.contacts;
$scope.currentContact = contactsService.currentContact;
$scope.ccLocked = contactsService.isCurrentContactLocked;
window.contactsService = contactsService;
$scope.getContact = contactsService.getContact;
$scope.deleteCurrentContact = contactsService.deleteCurrentContact;
$scope.newContact = contactsService.newContact;
$scope.clinics = helper.getClinics();
------
application.service('helper',function ($http,$q) {
var self = this;
self.getClinics = function () {
var deferred = $q.defer();
$http.post("crm/get-clinics",{}).
success(function (data) {
deferred.resolve(data);
}).
error(errorHandler);
return deferred.promise;
}
});
MK
SФ
NK
NK
NK
L
АГ
L
DA
DA
DA
DA
AK
AK
DA
AK