-2
<html ng-app="">
<body ng-controller="controller">
<button class="btn" ng-click="create('new') >Click</button>
</body>
</html>
<script>
function controller($scope) {
$scope.create = function(id) {
// What will be the code to create a new array
// having name contained in variable?
};
}
<script>