Im trying to display a check box , drop-down and text box like shown in the image using angularjs. But I couldn't get it right and now Im displaying everything one below the another. Also how to get different values for different text-boxes in the table so that time calculations are different for each row in the table.
controller:
mainApp.controller('settings-controller', function ($scope) {
$scope.fields = [{ id: 1, name: 'Sunday' },
{ id: 2, name: 'Monday' },
{ id: 3, name: 'Tuesday' },
{ id: 4, name: 'Wednesday' },
{ id: 5, name: 'Thursday' },
{ id: 5, name: 'Friday' },
{ id: 5, name: 'Sunday' }];
Html:
<ion-checkbox ng-repeat="field in fields" ng-model="field.checked" ng-checked="field.checked">
{{field.name}}
</ion-checkbox>
<input type="text" ng-model="medicinetime">
<select ng-model="time" ng-options="time for time in hours"
<option value="">Select</option>
</select>
It's just a
table tr td
format only. you need addng-repeat
ontr
and format withtd
tag's like as below (please provide the correct array object name what they need.)