← All extensions

Angular TypeScript Snippets

v21.1.0 · by hudson-newey, johnpapa · added 3 November 2026

(Unofficial) Angular 21 TypeScript snippets

Snippets

How to install

With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.

You can also open the Extensions panel in the app and search for Angular TypeScript Snippets. The extension's id is angular-snippets.

Don't have Forge Super yet? Download it here.

README

From the extension's repository, written by its authors and not by Mentenaz. See the source.

Angular TypeScript Snippets for Zed

Big thank you for johnpapa for his development and maintenance of the vscode-angular-snippets which this extension is based on.

Updated for Angular 21 release

This extension for Zed adds TypeScript snippets for Angular.

Demo using the a-service-httpclient snippet

Angular TypeScript Snippets

SnippetPurpose
a-componentcomponent
a-component-inlinecomponent with inline template
a-component-rootroot app component with router-outlet
a-pipepipe
a-serviceservice with injectable provided in root
a-service-httpclientservice with injected HttpClient
a-ctor-skip-selfangular NgModule's skipself constructor
a-directivedirective
a-guard-can-activateCanActivateFn guard
a-guard-can-activate-childCanActivateChildFn guard
a-guard-can-deactivateCanDeactivate guard
a-guard-can-matchCanMatch guard
a-httpclient-gethttpClient.get with Rx Observable
a-http-interceptorEmpty Angular HttpInterceptor for HttpClient
a-http-interceptor-headersAngular HttpInterceptor that sets headers for HttpClient
a-http-interceptor-loggingAngular HttpInterceptor that logs traffic for HttpClient
a-modulemodule
a-module-rootroot app module
a-preload-opt-in-strategycustom preload strategy that allows choosing which routes to preload
a-preload-network-strategycustom preload strategy that preloads based on network connectivity
a-resolverfunctional route resolver
a-resolver-injectableinjectable route resolver
a-routesRoute definition file
a-route-path-404404 route path
a-route-path-defaultdefault route path
a-route-path-with-childrenroute path with children
a-route-path-eagereager route path
a-route-path-lazylazy route path
a-router-eventslisten to one or more router events
a-route-params-subscribesubscribe to route parameters
a-subscribeRx Observable subscription
a-trackbyto create a track function in TypeScript for the @for
a-rxjs-importimport RxJs features
a-rxjs-operatorsimport RxJs operators
a-outputoutput signal
a-inputinput signal
a-signalAngular signal
a-computedComputed signal
a-linked-signalLinked signal
a-injectinject() function

Local Installation

  1. Launch Zed
  2. Go to the "extensions" panel Ctrl + Shift + X (Windows/Linux) or Cmd + Shift + X (Mac)
  3. Click "Install dev extension"
  4. Locate the root of this repository, and select it
  5. Reload Zed

Credits

Thanks to the following contributors for the NgRx snippets: