...
var msgList = [];
var appEditDeviceConfig = angular.module('aaaaa', [])
.controller('ccccc', function ($scope,$http) {
$scope.txtBox = '';
$scope.msgLis = msgList;
$scope.btnClk = function(){
var txt = $scope.txtBox;
msgList.push(txt);
console.log(msgList);
};
});
...