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 246351 - Support new "bind once" feature
Summary: Support new "bind once" feature
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-08 15:40 UTC by Vladimir Riha
Modified: 2014-10-31 15:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-08-08 15:40:36 UTC
Angular 1.3 (unstable version) added a new syntax feature for binding in partial file:

{{::foo}}

The difference between current {{foo}} (which still works of course) is that {{::foo}} is replaced only once and after rendering, if variable foo is changed, this change is not reflected in page anymore. This is great for performance and memory usage.

Would be great if editor in IDE would support both {{foo}} and {{::foo}} for code completion after the 2 double colons:
{{::| }}

and go to declaration.

Thanks
Comment 1 Roman Svitanic 2014-10-01 11:44:40 UTC
fixed in web-main:
http://hg.netbeans.org/web-main/rev/a0e75005da3a
Comment 2 Quality Engineering 2014-10-04 04:55:59 UTC
Integrated into 'main-silver', will be available in build *201410040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a0e75005da3a
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: #246351: Support new "bind once" feature [AngularJS]
Comment 3 Vladimir Riha 2014-10-31 15:33:15 UTC
Thanks a lot, verified

Product Version: NetBeans IDE Dev (Build web-main-1474-on-20141031)
Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)