Skip to content

Instantly share code, notes, and snippets.

/index.html
Created Jan 2, 2018

Embed
What would you like to do?
<html ng-app="myApp">
<head>
<script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js"></script>
</head>
<body ng-controller="myController">
<input type="text" ng-model="keyworld">
<input type="button" value="clear" ng-click="clear()" ng-if="keyworld !='' ">
<script>
var app = angular.module('myApp', []);
app.controller('myController', function($scope) {
$scope.keyworld = '';
$scope.clear = function(){
$scope.keyworld = '';
}
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.