I have a app built with Angular and Angular UI. I am trying to count the characters across multiple accordions, as displayed in the plunker. The code I have only returns the first two characters and then nothing?
Is there something wrong I am doing?
The plunk is: Example code
app.js
$scope.what=[];
$scope.why=[];
Object.defineProperty($scope, 'characters', {
get() {
return $scope.what.length + $scope.why.length;
}
});
HTML:
{{characters}}
But like I said this only returns the first two characters?