SyntaxFix
Write A Post
Hire A Developer
Questions
Just use the length property of a JavaScript array like so:
length
JavaScript
$scope.names.length
Also, I don't see a starting <script> tag in your code.
<script>
If you want the length inside your view, do it like so:
{{ names.length }}