How to display count of records on tables using angular 7 ?

24 views
Skip to first unread message

ahmed elbarbary

unread,
Feb 23, 2020, 3:24:00 AM2/23/20
to Angular and AngularJS discussion
problem

How to display count of records on tables using angular 7 ?

I work on SQL server 2012 and asp.net core 2.2

I make web API on .net core 2.2 return count of records on table

meaning function API return only one value as integer

my question

How to display count of items on angular 7 ?

localhost:8089/api/countitems

on apiservice.ts

How to receive count from link below

ocalhost:8089/api/countitems

on itemsComponent.ts

How to call service here and receive count

itemsComponent.html

how to display count here on div or label

Dattaram Hodawadekar

unread,
Feb 24, 2020, 12:56:35 AM2/24/20
to ang...@googlegroups.com
simply bind the table array length like

 <div>{{ Tablearray.lenght }}</div>

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angular/8919c951-64eb-4965-80a1-04d42ed9d4f5%40googlegroups.com.

Dattaram Hodawadekar

unread,
Feb 24, 2020, 12:58:23 AM2/24/20
to ang...@googlegroups.com
<div>{{ Tablearray.length }}</div>  
Reply all
Reply to author
Forward
0 new messages