答案 0 :(得分:1)
in app.js
替换:
$scope.tabs.push({
"tabId": tabId = tabId + 1,
"name" : capitaliseFirstLetter(this.NewTabName),
"active" : true
});
要
$scope.tabs.push({
"tabId": tabId += 1,
"tabName" : capitaliseFirstLetter(this.NewTabName),
"active" : true
});
答案 1 :(得分:0)
这是你的问题:(在app.js中,在addTab函数下)
"name" : capitaliseFirstLetter(this.NewTabName),
应该是:
"tabName" : capitaliseFirstLetter(this.NewTabName),