Skip to content

Instantly share code, notes, and snippets.

Created Jan 2, 2018

What would you like to do?
<html ng-app="myApp">
<script src=""></script>
<body ng-controller="myController">
<input type="text" ng-model="keyworld">
<input type="button" value="clear" ng-click="clear()" ng-if="keyworld !='' ">
var app = angular.module('myApp', []);
app.controller('myController', function($scope) {
$scope.keyworld = '';
$scope.clear = function(){
$scope.keyworld = '';
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.