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.
Please try this: index.html: <div ng-controller="Controller"> <input type="button" value="set" ng-click="myVar = 'my-class'">{{myVar}} <input type="button" value="clear" ng-click="myVar = ''"> </div> file.js: function Controller($scope) { $scope.counter = 0; $scope.myVar = 1; $scope.change = function() { $scope.counter++; $scope.myVar = 2; }; } Now in index.html, there is a false hint that myVar is unused Product Version: NetBeans IDE Dev (Build 201306272300) Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15 System: Linux version 3.2.0-45-generic-pae running on i386; UTF-8; en_US (nb)
Created attachment 136491 [details] IDE log
Fixed in web-main: http://hg.netbeans.org/web-main/rev/80a4a3da9d2d
Integrated into 'main-silver', will be available in build *201307152300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/80a4a3da9d2d User: Petr Pisl <ppisl@netbeans.org> Log: #232027 - False variable unused hint
Thank you, verified Product Version: NetBeans IDE Dev (Build 201307182300) Updates: Updates available Java: 1.7.0_40-ea; Java HotSpot(TM) Client VM 24.0-b52 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b33 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)