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.
See: https://docs.angularjs.org/guide/expression 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.
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.
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)
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 :)
@elennaro: Yes, it works in these cases as well. You can download nightly build from bits.netbeans.org/download/trunk/nightly/latest/ and give it a try. Verified 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)