last day (15 days later) » 

1:45 PM
0
A: AngularJS: Reuse markup for editing many properties of an object

MTo$scope.configuration = { propertyA: $scope.(NgModel-Name) <---- } Instead of value put this $scope, it is called 2 way binding. And use ng-value to put init value of items. Do you get it ?

 
I don't get it. Can you edit my plunker and show the idea?
 
MTo
<form> <div ng-repeat="item in configuration"> {{property.Obiekt1}}<input type="number" step="0.1" ng-model="property.Obiekt1" required> </div> And in js file $scope.configuration = { "property":$scope.Obiekt1 // much, much more }
 
I does not work either. See here plnkr.co/edit/jMOyMbPVFrykBIAVijd5
 
MTo
it should be conected with ng-model ! I gave you code just repalce it
 
If you could replace it in the plunker and show it works, it would be great. Otherwise I don't know how to use your solution.
 
Hi
After clicking PostToServer (which is what I want to do) I don't have values which I entered in ng-repeat
And this is the problem
 
 
1 hour later…
MTo
3:02 PM
no czesc
 
MTo
3:25 PM
sprawdz teraz
 
MTo
3:36 PM
Powiedz jezeli o to chodzilo
 
4:32 PM
Hej, co sprawdzić?
ten plunker który mi wysłałeś nie robi tego
po kliknięciu "Post to Server" mam undefined
coś mi się wydaje że tego się nie da tak zrobić i musze odpuścić.
 
 
6 hours later…
MTo
11:02 PM
plnkr.co/edit/cZVaATcvQOO8rM6Z16X9?p=preview ale ten ?
To dziwne bo mnie to dziala dobrze
 

last day (15 days later) »