<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.min.js"></script>
var myApp = angular.module("myApp", []);
myApp.controller("myController", function($scope) {
$scope.exampleArray = ['Mango','Banana'];
$scope.clearArray = function() {
$scope.exampleArray = [];
<div ng-controller="myController">
<button ng-click='clearArray()' >Clear Array</button><br>
Array = {{exampleArray}}<br>