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 229688

Summary: Add angular script hintfix
Product: web Reporter: Marek Fukala <mfukala>
Component: AngularJSAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: ppisl
Priority: P4    
Version: 7.4   
Hardware: PC   
OS: Mac OS X   
Issue Type: ENHANCEMENT Exception Reporter:

Description Marek Fukala 2013-05-14 05:47:16 UTC
When one creates a new file and adds the ng-app directive or any other angular directive and the file doesn't refer the angular.js library, show a hint + hitfix which adds the <script src="path_to_angular.js"></script> element. The angular library can be searched in the project classpath or downloaded if not found.
Comment 1 everflux 2013-05-21 18:51:08 UTC
Please consider the data-ng-* attributes as well. (I use data-ng-app vs. ng-app for example to avoid HTML5 warnings.)
Comment 2 Marek Fukala 2013-05-21 18:57:33 UTC
Yes, by ng-app, I simply meant the "app" directive regardless the notation.