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 232029 - Go to declaration fails for some directives
Summary: Go to declaration fails for some directives
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-29 12:09 UTC by Vladimir Riha
Modified: 2013-07-02 08:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (48.17 KB, text/x-log)
2013-06-29 12:09 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-06-29 12:09:59 UTC
Created attachment 136494 [details]
IDE log

Please try:

index.html
<div ng-controller="SettingsController">
    Name: <input type="text"  ng-click="greet()" ng-model="name"/>
</div>

file.js:
function SettingsController($scope) {
  $scope.name = "John Smith";
  $scope.greet = function() {
   alert(this.name);
  };
}


Now Ctrl+Click works for "name" in ng-model but does nothing for greet() in ng-click



Product Version: NetBeans IDE Dev (Build 201306272300)
Updates: Updates available
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)
Comment 1 Vladimir Riha 2013-07-01 06:07:25 UTC
It seems to be not only function calls, but also properties, e.g. from ng-disabled directive


index.html:
<!doctype html>
<html ng-app>
    <head>
    </head>
    <body ng-controller="SettingsController">
        Click me to toggle: <input type="checkbox" ng-model="checked"><br/>
        <button ng-model="button" ng-disabled="checked">Button</button>
    </body>
</html>


file.js:
function SettingsController($scope) {
    $scope.checked = true;
    $scope.button = "";
}
Comment 2 Petr Pisl 2013-07-01 08:13:46 UTC
ng-disabled is not supported at all. I created new issue for it #232058
Comment 3 Vladimir Riha 2013-07-01 08:25:58 UTC
Thank you, should I check all directives if they are supported? I think that issue 232028 has similar symptoms for ng-change and ng-selected
Comment 4 Petr Pisl 2013-07-01 08:45:39 UTC
Yes. Vlado it would be great if you can list the directives, that we can supported in the same way as model or disabled. Thanks
Comment 5 Petr Pisl 2013-07-01 09:41:51 UTC
The case with the click fixed. http://hg.netbeans.org/web-main/rev/4f1d574803af
Comment 6 Quality Engineering 2013-07-02 02:15:52 UTC
Integrated into 'main-silver', will be available in build *201307012300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4f1d574803af
User: Petr Pisl <ppisl@netbeans.org>
Log: #232029 - Go to declaration fails for some directives
Comment 7 Vladimir Riha 2013-07-02 08:45:54 UTC
Thank you, verified


Product Version: NetBeans IDE Dev (Build 201307012300)
Updates: Updates available
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)