Website under maintenance

how to lie to someone 6

 <!DOCTYPE html>

<html>

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js"></script>


<body>

<script>

var app = angular.module("myShoppingList", []);

app.controller("myCtrl", function($scope) {

 $scope.products = ["Milk", "Bread", "Cheese"];

 $scope.addItem = function() {

  $scope.products.push($scope.addMe);

 }

});

</script>


<div ng-app="myShoppingList" ng-controller="myCtrl">

<ul>

<li ng-repeat="x in products">{{x}}</li>

</ul>

<input ng-model="addMe">

<button ng-click="addItem()">Add</button>

</div>

<p>Write in the input field to add items.</p>


</body>

</html>

0 Response to "how to lie to someone 6"

Post a Comment