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 250892 - No CC when controller registered using reference
Summary: No CC when controller registered using reference
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.1
Hardware: PC All
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-04 13:06 UTC by Roman Svitanic
Modified: 2015-03-05 04:08 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 Roman Svitanic 2015-03-04 13:06:58 UTC
E.g.:
function ItemCtrl() {
    this.count = 0;
    this.itemName = 'Item 1';
}
app.controller('ItemCtrl', ItemCtrl);
(or app.controller('ItemCtrl', [ItemCtrl]);)

app.config(['$routeProvider', function ($routeProvider) {
            $routeProvider
                    .when('/item', {templateUrl: 'partials/item.html', controller: 'itemCtrl', controllerAs: 'ic'})
                    .otherwise({redirectTo: '/list'});
        }]);

Then CC in partials does not work.
Comment 1 Roman Svitanic 2015-03-04 15:00:20 UTC
Changeset: af1aa6fcfb41
Author:    Roman Svitanic <rsvitanic@netbeans.org>
Date:      2015-03-04 16:00
Message:   #250892 and #246444: Better CC in AngularJS partials
Comment 2 Quality Engineering 2015-03-05 04:08:33 UTC
Integrated into 'main-silver', will be available in build *201503050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/af1aa6fcfb41
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: #250892 and #246444: Better CC in AngularJS partials
Task #250892 - No CC when controller registered using reference