This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 248691 - AngularJS One-time binding in ng-bind causes unresolvable warning
Summary: AngularJS One-time binding in ng-bind causes unresolvable warning
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal with 2 votes (vote)
Assignee: Roman Svitanic
Depends on:
Reported: 2014-11-17 14:16 UTC by elennaro
Modified: 2014-11-28 12:09 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description elennaro 2014-11-17 14:16:20 UTC

When using one-time binding in ng-bind/ng-bind-html directives the syntax is:
<div ng-bind-html="::post.shortText"></div>
However on the double "::" Netbeans shows warning: "Expected an operand but found ::post.shortText...".

I think it'll be great to let Netbeans know that this is appropriate way of writing down angular $scope variables for one-time binding.

I suggest allow ::anything syntax in ng or data-ng prefixed attributes. Or maybe only for nd-bind/ng-bind-html/data-nd-bind/data-ng-bind-html.
Comment 1 Roman Svitanic 2014-11-20 12:56:10 UTC
This is already implemented and it used to work before merge of the server-split branch. Adding Svata on CC for evaluation from (probably) Parsing API point of view.
Comment 2 Roman Svitanic 2014-11-24 09:34:54 UTC
Issue can't be reproduced in:
Product Version: NetBeans IDE Dev (Build 20141124-a55308d687a7)
Java: 1.7.0_67; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Mac OS X version 10.10.1 running on x86_64; UTF-8; en_US (nb)
Comment 3 elennaro 2014-11-24 19:25:59 UTC
Does it work ok in ng-bind ng-bind-html data-nd-bind and data-ng-bind-html (attribute like) directives?
So it is no more warnings at <div ng-bind-html="::post.shortText"></div> for example?
If so it's Wonderful!
Can't wait for 8.1 release :)
Comment 4 Vladimir Riha 2014-11-28 12:09:21 UTC
@elennaro: Yes, it works in these cases as well. You can download nightly build from and give it a try.


Product Version: NetBeans IDE Dev (Build 201411280001)
Java: 1.7.0_71; Java HotSpot(TM) Client VM 24.71-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_71-b14
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)