netbeans-angular2-code-templates - plugin detail

Code templates for Angular in Netbeans. Templates exists for TypeScript and HTML.

NetBeans Plugin - netbeans-angular2-code-templates
Plugin owner: ChrisLE
Website: https://github.com/Chris2011/netbeans-angular2-code-templates
Added: 2016-06-12
License: MIT
Category: Web Applications
Downloaded: 4,536 times
Rating:
 4.49, by 1 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.01 MB   Last Update: 2017-10-27

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

RELEASE: 1.1.0

- Added more components (34 Angular snippets for TypeScript + RxJS and 19 Angular snippets for HTML)
- Changed from ng2- to a, aNg and rx

RELEASE: 1.0.2

- Fixed missing code templates inside TypeScript code completion

Verifications for NetBeans versions

8.2 verification PASSED See verification details
Download plugin   Download size: 0.01 MB   Last Update: 2016-06-12

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version



Verifications for NetBeans versions

8.1 verification PASSED See verification details


Introduction

Angular TypeScript Snippets for NetBeans

Now Updated for Angular 4.3.0 release

Biggest change

Now I use camelCase, because NetBeans has a problem when you type a-. The code completion will disappear. So this will not happen with camelCase. Now I use a or aNg and rx as a prefix, to be faster while typing. It is based on the Visual Studio Code implementation: https://github.com/johnpapa/vscode-angular2-snippets This extension for NetBeans adds snippets for Angular for TypeScript and HTML.

Usage

Type part of a snippet, press enter or tab, and the snippet unfolds.

TypeScript Angular Snippets

  1. aComponent - component
  2. aComponentInline - component with inline template
  3. aComponentRoot - root app component
  4. aDirective - directive
  5. aGuardCanActive - CanActivate guard
  6. aGuardCanActiveChild - CanActivateChild guard
  7. aGuardCanDeactivate - CanDeactivate guard
  8. aHttpGet - http.get with Rx Observable
  9. aHttpclientGet - httpClient.get with Rx Observable
  10. aHttpInterceptor - Empty Angular HttpInterceptor for HttpClient
  11. aHttpInterceptorHeaders - Angular HttpInterceptor that sets headers for HttpClient
  12. aHttpInterceptorLogging - Angular HttpInterceptor that logs traffic for HttpClient
  13. aModule - module
  14. aModuleRoot - root app module
  15. aModuleRouting - routing module file (forChild)
  16. aOutputEvent - @Output event and emitter
  17. aPipe - pipe
  18. aRoutePath404 - 404 route path
  19. aRoutePathDefault - default route path
  20. aRoutePathEager - eager route path
  21. aRoutePathLazy - lazy route path
  22. aRouterEvents - listen to one or more router events
  23. aService - service
  24. aServiceHttp - service with Http
  25. aServiceHttpclient - service with HttpClient
  26. aCtorSkipSelf - angular NgModule's skipself constructor
  27. aSubscribe - Rx Observable subscription
  28. aResolver - resolver

TypeScript RxJS Snippets

  1. rxObservable - Rx Observable import
  2. rxSubject - Rx Subject import
  3. rxReplaySubject - Rx ReplaySubject import
  4. rxBehaviorSubject - Rx BehaviorSubject import
  5. rxAddOperator - Rx add operator import
  6. rxAddObservable - Rx add observable import

HTML Snippets

  1. aClass - [class] binding
  2. aNgClass - ngClass
  3. aNgContainer - <ng-container> element
  4. aNgContent - <ng-content> element
  5. aNgFor - *ngFor
  6. aNgForAsync - *ngFor with async
  7. aNgForTrackBy - *ngFor with trackBy
  8. aNgIf - *ngIf
  9. aNgIfElse - *ngIf with else
  10. aNgModel - ngModel
  11. aNgStyle - ngStyle
  12. aNgSwitch - ngSwitch
  13. aNgTemplate - <ng-template> element
  14. aPrej - show the JSON form of a model
  15. aPreja - show the JSON form of a model, using async
  16. aRouterLink - routerLink
  17. aRouterLinkParam - routerLink with a route parameter
  18. aSelect - <select> control
  19. aStyle - [style] binding

[ You have to be logged in to be able to comment. ]

User Comments

  

More info

@Anda77

First, please give more information about the problem. Where does this happens, when does this happens. Steps to reproduce, etc. I don't think that this happens by my extension, because it will only provide snippets but anyway.

Second, please go to: https://github.com/Chris2011/netbeans-angular2-code-templates/issues and create a ticket there. Of course with more explicit steps to reproduce. Thx
Posted by ChrisLE on Aug 17, 2017
  

Error

ava.lang.NullPointerException
at javax.swing.GrayFilter.createDisabledImage(GrayFilter.java:49)
at javax.swing.text.html.ImageView.getImage(ImageView.java:199)
at javax.swing.text.html.ImageView.paint(ImageView.java:363)
at javax.swing.text.BoxView.paintChild(BoxView.java:161)
at javax.swing.text.BoxView.paint(BoxView.java:433)
at javax.swing.text.BoxView.paintChild(BoxView.java:161)
at javax.swing.text.BoxView.paint(BoxView.java:433)
at javax.swing.text.ParagraphView.paint(ParagraphView.java:580)
at javax.swing.text.html.ParagraphView.paint(ParagraphView.java:233)
at javax.swing.text.BoxView.paintChild(BoxView.java:161)
at javax.swing.text.BoxView.paint(BoxView.java:433)
at javax.swing.text.html.BlockView.paint(BlockView.java:282)
at javax.swing.text.BoxView.paintChild(BoxView.java:161)
at javax.swing.text.BoxView.paint(BoxView.java:433)
at javax.swing.text.html.BlockView.paint(BlockView.java:282)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1434)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:737)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:881)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:860)
at javax.swing.JComponent.paintComponent(JComponent.java:780)
at javax.swing.JComponent.paint(JComponent.java:1056)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JViewport.paint(JViewport.java:728)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1047)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Posted by Anda77 on Jul 25, 2017
  

I forgot

to request the verification for 8.2. Sry. I did this now.
Posted by ChrisLE on Oct 29, 2016
  

Update Please

What are the plans to update or verify that this works for Release 8.2.
Thanks!
Posted by williamrouse on Oct 04, 2016
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo