Vote count:
0
I'm new to Angular and want to create a basic list where I enter in an item name and price and click "Add item" and have it appended to a list. I have everything set up, but I'm not sure how to grab the items in the form. Here is my fiddle: http://ift.tt/1lD8VFE
<body ng-app="split">
<div ng-controller="check">
<form>
<input type="text" placeholder="item name">
<input type="text" placeholder="item price">
<input type="submit" value="Add item">
</form>
</div>
<script>
var split = angular.module("split", [ ]);
split.controller('check',['$scope', function($scope){
// code?
}]);
</script>
</body>
asked 25 secs ago
How do I grab the elements in a form in Angular and have them appended in a list?
Aucun commentaire:
Enregistrer un commentaire