Created
January 2, 2018 03:07
-
-
Save anonymous/345e2fe5a03c0b028e5db288f7f18fa2 to your computer and use it in GitHub Desktop.
// source http://jsbin.com/latubaw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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