How to read the id of the div from controller

23 views
Skip to first unread message

kim

unread,
Mar 31, 2015, 5:39:49 PM3/31/15
to ang...@googlegroups.com
I have this template .html              
 <dt><span stat-id= "{{stat.data}}" ></span></dt> 

and in controller I want to get the stat-id. What is the syntax to do that?
Thanks,
Kim

Sander Elias

unread,
Apr 1, 2015, 1:12:59 AM4/1/15
to ang...@googlegroups.com
Hi Kim,

I need to do a lot of guessing to what it is you are asking, so I might be wrong ;)
Nevertheless, probably you need to use `$scope.stat.data`in your controller.
If it's not, build a sample using plunk showcasing your issue.

Regards
Sander
Reply all
Reply to author
Forward
0 new messages