glimmerx-router
Experimental router for glimmerx, will ship as emberx/router
& emberx/route
& emberx/link-to
& emberx/test-helpers
and emberx/string
src/index.js
is the public API developers will interact with and src/routes/index.ts
built as an example.
npm install && parcel index.html
API Design
What if @ember/routing/router
& @ember/routing/route
were a tiny and explicitly resolvable router you could import from npm.
Flexible and simple API below can be progressively backward-compatible and support current ember router definitions!
; ;;;; Router.SERVICES =; ; ;
This API also will allow custom resolvers that can resolve current ember routers(ie. routes in Router.map(function() {})
) with a specific resolver definition(classic or MUD) in future:
Backward-compatible API suggestion:
;; Router.resolver = SomeCustomResolver; ; ; ;
This experiment is also a sketch/request for a new ember edition.
Familiar emberx/route:
;;; ;; ;;
This experiment is also a sketch/request for a new ember edition. Deprecates ember controllers and makes ember-specific CLI systems an option rather than requirement. Allows "npm your way to ember", from a React alternative(glimmer) to a full-fledged ember application without ember-cli.
Prerequisites
You will need the following things properly installed on your computer.