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 238971 - Save controllers defined globally in index and offer cc for them without ng-controller directive
Summary: Save controllers defined globally in index and offer cc for them without ng-c...
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: 2013-11-29 12:38 UTC by Vladimir Riha
Modified: 2014-02-07 08:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (7.45 KB, application/zip)
2013-11-29 12:38 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-11-29 12:38:20 UTC
Created attachment 142721 [details]
sample project

Please check the sample attached project, routing is defined (albeit not pretty) via

$routeProvider.when('/specifications/:id', {templateUrl: 'partials/public/view/specpool.html', controller: SpecPoolCtrl});

and controllers are exposed as global functions. In this case, code completion in partials does not offer properties from controllers.

Thank you


Product Version: NetBeans IDE Dev (Build 201311290002)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b59
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b117
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Quality Engineering 2013-12-04 02:44:20 UTC
Integrated into 'main-silver', will be available in build *201312040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ed22e0fa2660
User: Petr Pisl <ppisl@netbeans.org>
Log: #238971 - Save controllers defined globally in index and offer cc for them without ng-controller directive
Comment 2 Vladimir Riha 2013-12-04 09:03:08 UTC
Thank you, seems to be OK now, I'll be testing it more during today/tomorrow.
Comment 3 Vladimir Riha 2013-12-05 10:24:18 UTC
Petre, should it be marked fixed? It seems to work fine after your latest changes
Comment 4 Petr Pisl 2014-02-04 08:58:09 UTC
Sorry, I have forget to mark as fixed.