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 - Add angular script hintfix
Summary: Add angular script hintfix
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P4 normal with 3 votes (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2013-05-14 05:47 UTC by Marek Fukala
Modified: 2015-09-09 11:38 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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.