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 235766 - Update list of AngularJS directives
Summary: Update list of AngularJS directives
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-10 20:33 UTC by Emmentaler
Modified: 2013-11-15 09:44 UTC (History)
3 users (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 Emmentaler 2013-09-10 20:33:13 UTC
Angular ng-if directive is not listed.  This may be because Angualr support is hard-coded and ng-if is not supported in the current stable version 1.0.7 however it is supported in releases from 1.5 onward and is in the current 1.2.0RC2 which is likely to be approved before Netbeans 7.4 finalizes.
Comment 1 Vladimir Riha 2013-10-07 08:05:00 UTC
There are more cases, for instance ng-keyup, keypress... which were added in latest stable 1.0.8 (at least documentation first mentions it with this version). I think this would be a good patch candidate to at least update list of directives in HTML completion
Comment 2 Vladimir Riha 2013-11-07 14:25:38 UTC
Here's a list of what I've found is missing now:

ng-bind-html
ng-blur
ng-copy
ng-cut
ng-focus
ng-if
ng-keydown
ng-keypress
ng-keyup
ng-open
ng-paste
ng-srcset
ng-value

Petre if you think it would be risky for patch, please feel free to remove SW. Thank you
Comment 3 Vladimir Riha 2013-11-07 17:04:28 UTC
Nathaniel J. sent me email about ng-switch directive. CC does not offer ng-switch-when, ng-switch-default but these are "sub-directives" so I'm not sure about them. 



From email from Nathaniel J.:

Additionally ng-switch now works differently.  It has 
ng-switch on="expression"  
ng-switch-when
ng-switch-default

http://docs.angularjs.org/api/ng.directive:ngSwitch
Comment 4 Petr Pisl 2013-11-12 13:37:15 UTC
Fixed in web-main: http://hg.netbeans.org/web-main/rev/5fad3e73c64e

I have added the listed directives, plus the switch subdirectives
Comment 5 Vladimir Riha 2013-11-13 10:31:30 UTC
Verified, cc now offers mentioned directives. Thank you

Product Version: NetBeans IDE Dev (Build 201311130002)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 6 Petr Pisl 2013-11-13 10:45:21 UTC
The fix was transplanted to the releases: http://hg.netbeans.org/releases/rev/7af9482ffc78
Comment 7 Vladimir Riha 2013-11-15 09:44:46 UTC
Verified in patch

Product Version: NetBeans IDE 7.4 (Build 201311142201)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)