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 240825 - Completion/go to declaration are limited when using dynamic parameter in template URL
Summary: Completion/go to declaration are limited when using dynamic parameter in temp...
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-22 14:44 UTC by Vladimir Riha
Modified: 2014-02-07 07:54 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-01-22 14:44:03 UTC
In order to prevent browser from caching templates (partials), the "only" option is to use dynamic parameters in URL, e.g.

 $routeProvider.when('/specification/:id/v/2', {templateUrl: 'view.html?v=1', controller: SpecificationCtrl});

However, this causes:
  - code completion in partial is not related to controller
  - wrong variable colors in partial (marked as global)
  - go to declaration from partial does not work
  - go to declaration to partial from app.js does not


To reproduce, simply create AngularJSPhoneCat sample project and update app.js:18 to

templateUrl: 'partials/phone-list.html?v=1',



Product Version: NetBeans IDE Dev (Build 201401220001)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b122
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2014-01-28 17:33:32 UTC
Fixed in web-main.
Comment 2 Quality Engineering 2014-01-29 02:53:08 UTC
Integrated into 'main-silver', will be available in build *201401290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6ab4df66d997
User: Petr Pisl <ppisl@netbeans.org>
Log: #240825 - Completion/go to declaration are limited when using dynamic parameter in template URL
Comment 3 Vladimir Riha 2014-02-07 07:54:24 UTC
Verified, thank you

Product Version: NetBeans IDE Dev (Build 201402070001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b128
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)