angular.copy,克隆数据

angular.copy()可以复制一个对象或数组.

使用方法:

data = self.data = angular.copy(self.currentTemplate);
复制self.currentTemplate并赋值给data;