Détail du package

aurelia-templating-router

aurelia46kMIT1.5.0

An implementation of the RouteLoader interface for use with the router module. Also contains a custom element that allows the templating engine to display the current route.

aurelia, templating, html, router

readme

Aurelia

License: MIT npm Version ci Discourse status Twitter Discord Chat

aurelia-templating-router

Platform Support

This library can be used in the browser only.

Building The Code

To build the code, follow these steps.

  1. Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
  2. From the project folder, execute the following command:

    npm install
    
  3. To build the code, you can now run:

    npm run build
    
  4. You will find the compiled code in the dist folder, available in three module formats: AMD, CommonJS and ES6.

Running The Tests

To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:

  1. Ensure that the Karma CLI is installed. If you need to install it, use the following command:

    npm run test
    
  2. With watch options to rerun the test (headless):

    npm run test:watch
    
  3. With watch options to rerun the test (with browser):

    npm run test:debugger
    

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.5.0 (2022-04-12)

Features

  • router-view: export RouterViewLocator (b4bc84a), closes #127

1.4.0 (2019-05-02)

Bug Fixes

  • route-loader: Normalize html child routes (668bf2c)

Features

  • router-view: ability to turn off inherit-binding-context (f3f38d6)

1.3.3 (2018-09-25)

Bug Fixes

  • RouterView, RouteHref: delay element injection (a465e6e)

1.3.2 (2018-07-03)

  • Update dependencies and leverate new framework configuration APIs.

1.3.0 (2018-01-15)

Features

  • templating-router: optional viewports (24532ff)

1.2.0 (2017-10-02)

Bug Fixes

  • route-href: delay route generation until after router's baseURL has been set (606bf42), closes #46
  • templating-router: Silence Bluebirds runaway promise warning (62ba4e2)

Features

  • Use route as default property for route-href

1.1.0 (2017-02-26)

Features

  • route: load html only component (112dd29)
  • Update to use shared SwapStrategies from templating.

1.0.1 (2016-12-03)

Bug Fixes

  • router-view: deco typo, lint and missing conditional (7de1854)

1.0.0 (2016-07-27)

1.0.0-rc.1.0.1 (2016-07-12)

Bug Fixes

  • route-href: return null from promises (fd1b2fc), closes #31
  • router-view: correct relative view strategies (3f92470)

1.0.0-rc.1.0.0 (2016-06-22)

1.0.0-beta.1.2.1 (2016-05-10)

1.0.0-beta.1.2.0 (2016-03-22)

  • Update to Babel 6

1.0.0-beta.1.1.2 (2016-03-01)

Bug Fixes

  • router-view: simplify composition transaction use (76cdc978)

Features

  • router-view: connect to composition transaction (b95667e0)

1.0.0-beta.1.1.1 (2016-02-08)

1.0.0-beta.1.1.0 (2016-01-29)

Features

  • all: update jspm meta; core-js; aurelia-dps (e26b67e7)

1.0.0-beta.1.0.5 (2016-01-08)

Bug Fixes

  • index: AppRouter should point to the same root Router singleton as Router (8c62f59f)
  • router-view: properly handle the created callback during dynamic composition (05671f46)

1.0.0-beta.1.0.4 (2015-12-22)

Bug Fixes

  • promise-all: Wrap Promise all args in an array (a6dc58af)

1.0.0-beta.1.0.3 (2015-12-16)

Bug Fixes

  • add-nextview-first: Add the next first on with (d188112c)
  • default-swap-order: Set default swap order to after resolves aurelia/framework#263 (984aeb12)
  • spelling: Miss-Spelled SwapStrategies (9b9fb9ea)

1.0.0-beta.1.0.2 (2015-12-03)

Bug Fixes

  • router-view: ensure unbind prev view (a2197205, closes #16)

1.0.0-beta.1.0.1 (2015-11-16)

1.0.0-beta.1 (2015-11-16)

0.18.0 (2015-11-10)

Bug Fixes

  • all: utilize the viewModel property instead of bindingContext (7e4590fe)
  • route-href: ensure the component is bound before processing changes (f7612d6c)
  • route-loader: update to latest composition engine (b9a8b4bb)
  • router-view:
    • update to latest templating resource load api (aeb200d0)
    • update to use view locator (77db54d1)
    • use the new Controller#automate api (b0db6464)
    • correctly bind controller for consistent binding order (2f50e532)
  • swapStrategies: handle undefined view (b2818021)

Features

  • animation-timing:
    • Re-apply viewInstruction controller automat (d2d14bda)
    • Apply animationTimings to the router-view before|with|after (5e504193)
  • default-animation-timing: Set the default animation-timing function to 'before' (9a2e530e)
  • route-href: report errors via aurelia-logging (ac8dc0fb)
  • swap-order: Rename Bindable animationTiming to swapOrder (2be906a9)
  • swap-view: Rename Bindable Property form Animation-Timing to Swap-View (0a849540)

0.17.0 (2015-10-13)

Bug Fixes

  • all:
    • update executionContext naming to bindingContext (451a21e1)
    • update to latest plugin api (c75a8236)
    • update to new resource loading processing pipeline (122f7e9d)
  • build:
    • update linting, testing and tools (6c297c13)
    • add missing bower bump (00090a2e)
  • index:
    • update to latest configuration api (19e90527)
    • plugin now uses new id-base api for resources (79bb1906)
  • package:
    • change jspm directories (98734f03)
    • update dependencies (bc40d4e9)
    • update deps and fix bower semver ranges (6c09a5e1)
    • update dependencies (f956c4ff)
    • update Aurelia dependencies (21897ecd)
    • update dependencies to latest (c8277386)
    • update router to latest version (24ae8680)
    • update dependencies to latest versions (9102ed05)
    • update templating to latest version (c8ab2558)
    • update dependencies to latest versions (4c17dbad)
    • update dependencies to latest versions (6a9e8c87)
    • updating dependencies to their latest versions (c91a7d75)
  • route-href: account for async router configs when generating route hrefs (37933612)
  • router-view:
    • use correct behavior instruction (4ea57f3a)
    • remove reliance on swap method of slot (9b96894c)
    • view swapping now unbinds after detach and returns to cache (d9f81cca)
    • ensure that bind callbacks execute (07d789fc)
    • update to latest metadata api (9813b21a)
    • align with view model load api (d3881eaf)
    • ensure getComponent returns promise (8cec29a1)
    • ensure that execution context is always set (609b8ec1)
  • router-view-port: renamed to router-view (43760091)

Features

  • all:
    • update to pal (a0a63945)
    • new router configuration strategy (1dd6686b)
    • upgrade compiler and integrate decorators (d9d8594a)
    • make route config view and moduleId relative to router's owner (2aec99bd)
  • build: update compiler and switch to register module format (1a0f2d6b)
  • docs: generate api.json from .d.ts file (6e576cfc)
  • route-href: add custom attribute for generating hrefs for named routes (e6b94ce6)
  • router: enable plugin model (a570e911)
  • router-view:
    • updated to reflect new controller naming from templating library (128454c3)
    • support syncChildren (8a40ba7c)
    • update to new fluent metadata (3335a303)
    • delayed view loading (76389e77)
    • make router location more robust (f38a2cb4)
    • enable getViewStrategy on view models (5aea8b3e)

0.16.1 (2015-09-05)

Bug Fixes

  • router-view: use correct behavior instruction (4ea57f3a)

0.16.0 (2015-09-05)

Bug Fixes

  • all: update executionContext naming to bindingContext (451a21e1)
  • build: update linting, testing and tools (6c297c13)
  • router-view:
    • remove reliance on swap method of slot (9b96894c)
    • view swapping now unbinds after detach and returns to cache (d9f81cca)

Features

  • docs: generate api.json from .d.ts file (6e576cfc)

0.15.0 (2015-08-14)

Bug Fixes

  • index: update to latest configuration api (19e90527)
  • route-href: account for async router configs when generating route hrefs (37933612)

0.14.1 (2015-07-29)

  • improve output file name

0.14.0 (2015-07-02)

0.13.0 (2015-06-08)

Features

  • router-view: support syncChildren (8a40ba7c)

0.12.0 (2015-05-01)

Bug Fixes

  • all: update to latest plugin api (c75a8236)

Features

  • all: new router configuration strategy (1dd6686b)
  • route-href: add custom attribute for generating hrefs for named routes (e6b94ce6)

0.11.0 (2015-04-09)

Features

  • all: upgrade compiler and integrate decorators (d9d8594a)

0.10.0 (2015-03-25)

Bug Fixes

  • all: update to new resource loading processing pipeline (122f7e9d)
  • index: plugin now uses new id-base api for resources (79bb1906)

0.9.4 (2015-02-28)

Bug Fixes

  • package: change jspm directories (98734f03)

0.9.3 (2015-02-28)

Bug Fixes

  • build: add missing bower bump (00090a2e)
  • package: update dependencies (bc40d4e9)

0.9.2 (2015-01-24)

Bug Fixes

  • package: update deps and fix bower semver ranges (6c09a5e1)

0.9.1 (2015-01-24)

Bug Fixes

  • router-view: ensure that bind callbacks execute (07d789fc)

0.9.0 (2015-01-22)

Bug Fixes

  • package: update dependencies (f956c4ff)
  • router-view: update to latest metadata api (9813b21a)

Features

  • router-view: update to new fluent metadata (3335a303)

0.8.0 (2015-01-12)

Bug Fixes

  • package: update Aurelia dependencies (21897ecd)

0.7.0 (2015-01-07)

Bug Fixes

  • package: update dependencies to latest (c8277386)

Features

  • all: make route config view and moduleId relative to router's owner (2aec99bd)
  • router-view: delayed view loading (76389e77)

0.6.0 (2015-01-06)

Bug Fixes

  • router-view: align with view model load api (d3881eaf)

Features

  • build: update compiler and switch to register module format (1a0f2d6b)
  • router: enable plugin model (a570e911)
  • router-view: make router location more robust (f38a2cb4)

0.5.2 (2014-12-22)

Bug Fixes

  • package: update router to latest version (24ae8680)

0.5.1 (2014-12-22)

Bug Fixes

  • router-view: ensure getComponent returns promise (8cec29a1)

0.5.0 (2014-12-22)

Bug Fixes

  • package: update dependencies to latest versions (9102ed05)
  • router-view: ensure that execution context is always set (609b8ec1)

Features

  • router-view: enable getViewStrategy on view models (5aea8b3e)

0.4.1 (2014-12-18)

Bug Fixes

  • package: update templating to latest version (c8ab2558)

0.4.0 (2014-12-17)

Bug Fixes

  • package: update dependencies to latest versions (4c17dbad)

0.3.0 (2014-12-12)

Bug Fixes

  • package: update dependencies to latest versions (6a9e8c87)
  • router-view-port: renamed to router-view (43760091)

0.2.0 (2014-12-11)

Bug Fixes

  • package: updating dependencies to their latest versions (c91a7d75)