I use ng-click to call a function with arguments that I get from $ scope. Unfortunately, either the arguments are not processed from angular, or I get this error:
Error: [$ parse: syntax] Syntax error: token ':' is not the main expression in column 1 of the expression [: notification], starting with [: notification].
HTML snippet that results in an error:
<div ng-click="goToNotif({{notification.id}})"></div>
HTML snippet that is not processed with angular:
<div ng-click="goToNotif(notification.id)"></div>
IMPORTANT: notificationanalyzed with repetition
<div(ng-repeat="notification in notifications")></div>
source
share