qwebs
Version:
Back-end web server
20 lines • 626 B
HTML
<html ng-app="app">
<head>
<title>Qwebs - angular - exemple</title>
</head>
<body ng-controller="AppCtrl as ctrl">
<div>
<button ng-click="ctrl.load()">Load cities from server</button>
</div>
<div ng-repeat="item in ctrl.collection">
<span>{{item.name}}</span>
</div>
<div>
<input type="text" ng-model="ctrl.city.name"></input>
<button ng-click="ctrl.add()">Add city</button>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="/app.js"></script>
</body>
</html>