I am currently performing the following action:
myArray.push(pageCount);
After that, I end up with something like this:
$scope.myArray = Pages.getAllPageCount();
Finally, when I utilize AngularJS to display it in my .html file.
{{myArray}}
If there is only one value, it will be displayed as [30]
, for example.
However, I do not want the square brackets [
and ]
to be shown.
Is there a way to remove them?
PS: It is important for me to maintain my data as an Array.
Thank you for your assistance!