I want to display the icon in my tab "winner" angular. I have one file "tabs.html" in which the code for my tab is written.
<ion-tab icon-off="notificationIconDisabled" icon-on="notificationIconEnabled" href="#/tab/newjob" badge="{{newJobsCount}}" badge-style="badge-assertive">
<ion-nav-view name="tab-newjob"></ion-nav-view>
</ion-tab>
I have other files like tab-setting.html, tab-myjobs.html and tab-newjobs.html. "myjobs.html" and "tab-newjobs.html" use the controller "jobCtrl.js". Now, when I try to set the icon through "jobCtrl.js" as follows,
$scope.newJobsCount = $scope.jobList.length;
I cannot do this and I get the following error in the browser for the icon
Error: [$ parse: syntax] Syntax error: token '{' invalid key in column 2 of expression [{{newJobsCount}}], starting with [{newJobsCount}}].
can someone help me with an example how to implement icons in angular js ??
Thanks in advance.