All Projects → benwinding → ngext

benwinding / ngext

Licence: MIT License
Better routing for Angular

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to ngext

ngx-metafrenzy
🏷️ Angular module for setting meta/link tags such as open graph, canonical, robots, and title
Stars: ✭ 19 (-75.64%)
Mutual labels:  server-side-rendering, ngx
angular-httpclient
Angular 15 Example HttpClient
Stars: ✭ 21 (-73.08%)
Mutual labels:  routing, server-side-rendering
Awesome Nextjs
📔 📚 A curated list of awesome resources : books, videos, articles about using Next.js (A minimalistic framework for universal server-rendered React applications)
Stars: ✭ 6,812 (+8633.33%)
Mutual labels:  routing, server-side-rendering
angular-prerender
A command line tool to prerender Angular Apps.
Stars: ✭ 123 (+57.69%)
Mutual labels:  server-side-rendering, ngx
Universal Router
A simple middleware-style router for isomorphic JavaScript web apps
Stars: ✭ 1,598 (+1948.72%)
Mutual labels:  routing, server-side-rendering
angular-ssr
Angular 14 Example SSR (Server side rendering)
Stars: ✭ 92 (+17.95%)
Mutual labels:  routing, server-side-rendering
CRRouter
A simple and powerful router
Stars: ✭ 54 (-30.77%)
Mutual labels:  routing
fastify-angular-universal
Angular Universal integration to Fastify for rendering Angular apps on the server
Stars: ✭ 20 (-74.36%)
Mutual labels:  server-side-rendering
go-reverse-proxy
Reverse proxy with simple routing configuration and override behaviour
Stars: ✭ 21 (-73.08%)
Mutual labels:  routing
router
Bidirectional Ring router. REST oriented. Rails inspired.
Stars: ✭ 78 (+0%)
Mutual labels:  routing
angular-pwa
Angular 13 Example Progressive Web App (PWA)
Stars: ✭ 45 (-42.31%)
Mutual labels:  server-side-rendering
OsmToRoadGraph
OSM XML file to road graph converter
Stars: ✭ 31 (-60.26%)
Mutual labels:  routing
medellinjs
MedellinJS
Stars: ✭ 61 (-21.79%)
Mutual labels:  server-side-rendering
static-router
Simple static router for Nette Framework
Stars: ✭ 24 (-69.23%)
Mutual labels:  routing
gomodest-starter
A complex SAAS starter kit using Go, the html/template package, and sprinkles of javascript.
Stars: ✭ 68 (-12.82%)
Mutual labels:  server-side-rendering
r2
A minimalist HTTP request routing helper for Go.
Stars: ✭ 32 (-58.97%)
Mutual labels:  routing
openmessaging.github.io
OpenMessaging homepage
Stars: ✭ 12 (-84.62%)
Mutual labels:  routing
ngx-modal
Dynamic modal dialog for Angular
Stars: ✭ 54 (-30.77%)
Mutual labels:  ngx
ors-map-client
Openrouteservice API web SPA client using VueJS, Vuetify and Vue2Leaflet
Stars: ✭ 51 (-34.62%)
Mutual labels:  routing
OpenBSDFirewall
Simple OpenBSD Home Firewall Config for ALIX Board
Stars: ✭ 41 (-47.44%)
Mutual labels:  routing

ngext

A routing framework for angular inspired by React's next.js.

NPM Version License Downloads/week Github Issues

Introduction

Ngext is a tool which abstracts an angular application and drastically simplifies the routing. It has the following features:

  • File-based routing (no more routing modules!)
  • All lazy loaded modules generation
  • Dynamic configurations (no more static angular.json files)
  • Declarative route layouts
  • Server-side rendering, (HTML file for each page!)
  • Compatible with all your existing angular files @NgModules, @Components, ...etc

Links

Get Started

Install

npm i -g ngext

Usage

Usage: ngext [options] [command]

Options:
  -v, --version      output the version number
  -h, --help         display help for command

Commands:
  new [ProjectName]  Creates a new project
  build              Builds the ngext app
  export             Exports the ngext app with SSR
  dev                Runs the ngext app locally
  help [command]     display help for command

Why use this?

Angular has many elegant abstractions, @Component, @Module, @Injectable. However, the routing in Angular is not a simple abstraction.

In order to add a new page, Angular routing requires that you edit 3 places; add a component file, declare component in a module, and add a route to a routing module.

comparison

This project attempts to encapsulate this into a single abstraction @PageComponent, which contains the component, dependencies and the route path which is generated from the page location. Making it easier than ever to add new pages to Angular apps.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].