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.
Angular 1.2 brings new syntax/logic "controller as". It can be used in ng-controller as well as in routing and it enables to use any property declared in controller via "this" in partial file, so $scope might not be used at all. It is quite a big change. For examples, please check [1] [1] http://css.dzone.com/articles/%E2%80%9Ccontroller-as%E2%80%9D-syntax-angular
*** Bug 244695 has been marked as a duplicate of this bug. ***
implemented in web-main: http://hg.netbeans.org/web-main/rev/9e5dbe154e2e
Thanks a lot Romane. I'll try it and cover it with qa tests this/next week.
Integrated into 'main-silver', will be available in build *201409241121* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9e5dbe154e2e User: Roman Svitanic <rsvitanic@netbeans.org> Log: #242570 - Support for "controller as" syntax [AngularJS]
I'm sorry but it is not complete. There are several ways to define controller in AngularJS and one common (because it does not pollute global namespace) is in the attached project. If you try code completion/go to declaration in partial1.html for ct1 (or partial2.html for ct2), it does not offer relevant properties. Thank you Product Version: NetBeans IDE Dev (Build web-main-1322-on-20140925) Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Created attachment 149522 [details] sample project
I'm sorry Roman, after fixing the typo, it works just fine. Please close it again, I won't reopen it this time :) Thank you
Thanks for the verification. Therefore I am closing this as fixed.
Thank you, verified Product Version: NetBeans IDE Dev (Build web-main-1322-on-20140925) Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)