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 233223 - Go to declaration from directive fails if there is some other empty directive
Summary: Go to declaration from directive fails if there is some other empty directive
Status: RESOLVED 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-07-23 06:58 UTC by Vladimir Riha
Modified: 2014-01-28 10:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (34.97 KB, text/x-log)
2013-07-23 06:58 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-07-23 06:58:57 UTC
Created attachment 137595 [details]
IDE log

Please try this:

file.js
function PhoneDetailCtrl($scope, $routeParams, Phone) {
$scope.mainImageUrl="";}

index.html
<!DOCTYPE html>
<html  ng-app="A">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body ng-controller="PhoneDetailCtrl">
        <img ng-src="{{mainImageUrl}}" ng-bind="" class="phone">
    </body>
</html>


now in html file, Ctrl+Click on either PhoneDetailCtrl or mainImageUrl, nothing happens. Now delete the empty ng-bind attribute (or add some value) and try again => now it works.



Product Version: NetBeans IDE Dev (Build 201307222300)
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)
Comment 1 Petr Pisl 2014-01-28 10:38:39 UTC
Should work in a dev build.