# Latest

**URL:** https://discourse.aurelia.io/latest.md?page=6

[Latest](https://discourse.aurelia.io/latest.md) · [Categories](https://discourse.aurelia.io/categories.md)

**Page:** 7

---

## [PLATFORM.taskqueue does not run concurrent tasks](https://discourse.aurelia.io/t/platform-taskqueue-does-not-run-concurrent-tasks/5379)

<div class="topic-metadata">

**Author:** [@sarp](https://discourse.aurelia.io/u/sarp)\
**Replies:** 2\
**Last updated:** [July 12, 2024, 12:18pm UTC](https://discourse.aurelia.io/t/platform-taskqueue-does-not-run-concurrent-tasks/5379 "2024-07-12T12:18:00Z")

</div>

Hey people! I am using the PLATFORM.taskQueue in several places throughout my app, and globally at the topbar to show time down to seconds. Every now and then, the seconds would stop counting and I never really realized…

---

## [\[Au2 Router\] Generate URL, query params, reload?](https://discourse.aurelia.io/t/au2-router-generate-url-query-params-reload/5463)

<div class="topic-metadata">

**Author:** [@migajek](https://discourse.aurelia.io/u/migajek)\
**Replies:** 2\
**Last updated:** [July 5, 2024, 11:33am UTC](https://discourse.aurelia.io/t/au2-router-generate-url-query-params-reload/5463 "2024-07-05T11:33:25Z")

</div>

Trying to port Au1 app to Au2, I have a pretty basic component (paginator) that is based on the (optional) query parameters of the route. When changing the page, it navigates to the current route but with a modified “pa…

---

## [Where is Aurelia 2's HTMLSanitizer?](https://discourse.aurelia.io/t/where-is-aurelia-2s-htmlsanitizer/5446)

<div class="topic-metadata">

**Author:** [@mreiche](https://discourse.aurelia.io/u/mreiche)\
**Replies:** 7\
**Last updated:** [July 3, 2024, 10:30am UTC](https://discourse.aurelia.io/t/where-is-aurelia-2s-htmlsanitizer/5446 "2024-07-03T10:30:58Z")

</div>

Aurelia 1 had an HTMLSanitizer interface. This is gone in Aurelia 2?

---

## [Aurelia 2, DI feedback and woes](https://discourse.aurelia.io/t/aurelia-2-di-feedback-and-woes/3359)

<div class="topic-metadata">

**Author:** [@xenoterracide](https://discourse.aurelia.io/u/xenoterracide)\
**Replies:** 4\
**Last updated:** [July 2, 2024, 6:45am UTC](https://discourse.aurelia.io/t/aurelia-2-di-feedback-and-woes/3359 "2024-07-02T06:45:37Z")

</div>

note: using 0.6.0 given this constructor @singleton() export default class App { constructor( private readonly apolloServerConfig: ApolloServerConfig, @optional(InjectToken.GraphHost) private readonly host: s…

---

## [Aurelia component with no view: A bad idea?](https://discourse.aurelia.io/t/aurelia-component-with-no-view-a-bad-idea/5476)

<div class="topic-metadata">

**Author:** [@mberdev](https://discourse.aurelia.io/u/mberdev)\
**Replies:** 4\
**Last updated:** [June 28, 2024, 12:12pm UTC](https://discourse.aurelia.io/t/aurelia-component-with-no-view-a-bad-idea/5476 "2024-06-28T12:12:30Z")

</div>

In order to “separate the concerns” in the logic of one of my components, I want to create an object that is only meant to listen to some events and compute a field accordingly. My problem is that it needs to unsubscrib…

---

## [How to get an error if a getter or field is missing?](https://discourse.aurelia.io/t/how-to-get-an-error-if-a-getter-or-field-is-missing/5472)

<div class="topic-metadata">

**Author:** [@mberdev](https://discourse.aurelia.io/u/mberdev)\
**Replies:** 1\
**Last updated:** [June 27, 2024, 9:12am UTC](https://discourse.aurelia.io/t/how-to-get-an-error-if-a-getter-or-field-is-missing/5472 "2024-06-27T09:12:38Z")

</div>

Here is a simple Aurelia class : export class MyClass { @bindable public someValue: number; constructor( ) { } @computedFrom("someValue") get isPositive() { return someValue \> 0; } And …

---

## [Why my post is showing this error?](https://discourse.aurelia.io/t/why-my-post-is-showing-this-error/5470)

<div class="topic-metadata">

**Author:** [@rosa56](https://discourse.aurelia.io/u/rosa56)\
**Replies:** 1\
**Last updated:** [June 27, 2024, 6:25am UTC](https://discourse.aurelia.io/t/why-my-post-is-showing-this-error/5470 "2024-06-27T06:25:55Z")

</div>

Hello, Recently I posted an query but is is not showing in community feed and shwoing this error: “Oops! That page doesn’t exist or is private.” Please guide me in this and live my post. Here is the link of my post: ht…

---

## [How to Handle HTML Sanitization in Aurelia 2?](https://discourse.aurelia.io/t/how-to-handle-html-sanitization-in-aurelia-2/5477)

<div class="topic-metadata">

**Author:** [@rosa56](https://discourse.aurelia.io/u/rosa56)\
**Replies:** 0\
**Last updated:** [June 27, 2024, 6:23am UTC](https://discourse.aurelia.io/t/how-to-handle-html-sanitization-in-aurelia-2/5477 "2024-06-27T06:23:31Z")

</div>

Hey there Aurelia fans! I am taking my project from Aurelia 1 to 2, and I noticed something missing: the HTML sanitizer. In version 1, it kept nasty stuff out of my code, but in 2, I’m at a loss. How do I make sure my H…

---

## [View-model gets passed, but not model? (RESOLVED)](https://discourse.aurelia.io/t/view-model-gets-passed-but-not-model-resolved/5473)

<div class="topic-metadata">

**Author:** [@mberdev](https://discourse.aurelia.io/u/mberdev)\
**Replies:** 1\
**Last updated:** [June 26, 2024, 10:53am UTC](https://discourse.aurelia.io/t/view-model-gets-passed-but-not-model-resolved/5473 "2024-06-26T10:53:36Z")

</div>

Hello, I’m banging my head against the walls trying to explain this behaviour. I’ve been trying to replicate it in that sandbox but everything works properly there. The problem only happens in my “real” app (below). A…

---

## [Integrating Aurelia with WordPress backend](https://discourse.aurelia.io/t/integrating-aurelia-with-wordpress-backend/5474)

<div class="topic-metadata">

**Author:** [@ivan](https://discourse.aurelia.io/u/ivan)\
**Replies:** 0\
**Last updated:** [June 26, 2024, 4:28am UTC](https://discourse.aurelia.io/t/integrating-aurelia-with-wordpress-backend/5474 "2024-06-26T04:28:54Z")

</div>

I would like to create a WordPress plugin. The plugin adds a panel to the WordPress admin interface. This panel should host an Aurelia application. I have successfully gotten the Aurelia application to work in WordPress…

---

## [CodeSmash (Built with Aurelia)](https://discourse.aurelia.io/t/codesmash-built-with-aurelia/5069)

<div class="topic-metadata">

**Author:** [@mario.stopfer](https://discourse.aurelia.io/u/mario.stopfer)\
**Replies:** 30\
**Last updated:** [June 26, 2024, 1:45am UTC](https://discourse.aurelia.io/t/codesmash-built-with-aurelia/5069 "2024-06-26T01:45:19Z")

</div>

Hey guy, as recently mentioned, I’ve started working on a new No Code platform. I’ve created a drag’n’drop demo which demonstrates how to visually edit your cloud architecture and export the schema as Terraform files fo…

---

## [Ideas on Data driven UI Composition (vs previous AngularJS approach)](https://discourse.aurelia.io/t/ideas-on-data-driven-ui-composition-vs-previous-angularjs-approach/2269)

<div class="topic-metadata">

**Author:** [@JeffHare](https://discourse.aurelia.io/u/JeffHare)\
**Replies:** 6\
**Last updated:** [June 13, 2024, 5:20pm UTC](https://discourse.aurelia.io/t/ideas-on-data-driven-ui-composition-vs-previous-angularjs-approach/2269 "2024-06-13T17:20:38Z")

</div>

Hello, I’m looking for suggestions on Aurelia techniques for accomplishing this in a clean modular way. I’m very new to all this and starting a greenfield project using Aurelia. I have an application where some main c…

---

## [Facing Issue with Custom Attribute Binding](https://discourse.aurelia.io/t/facing-issue-with-custom-attribute-binding/5468)

<div class="topic-metadata">

**Author:** [@rosa56](https://discourse.aurelia.io/u/rosa56)\
**Replies:** 0\
**Last updated:** [June 24, 2024, 5:03am UTC](https://discourse.aurelia.io/t/facing-issue-with-custom-attribute-binding/5468 "2024-06-24T05:03:53Z")

</div>

Hello guys! :smiling\_face\_with\_three\_hearts: I am new to Aurelia and I am running into an issue with custom attribute binding that I can’t seem to resolve. I’m trying to create a custom attribute that formats a number a…

---

## [Transition plan for routes when parameters do not change](https://discourse.aurelia.io/t/transition-plan-for-routes-when-parameters-do-not-change/5431)

<div class="topic-metadata">

**Author:** [@ivan](https://discourse.aurelia.io/u/ivan)\
**Replies:** 6\
**Last updated:** [June 22, 2024, 8:51pm UTC](https://discourse.aurelia.io/t/transition-plan-for-routes-when-parameters-do-not-change/5431 "2024-06-22T20:51:34Z")

</div>

Using @aurelia/router-lite how can i get a route to reload if it uses the same component? In the documentation it states that “router-lite uses replace when the parameters are changed and none otherwise” @route({ rou…

---

## [How to configure global Aurelia DI container?](https://discourse.aurelia.io/t/how-to-configure-global-aurelia-di-container/5458)

<div class="topic-metadata">

**Author:** [@mreiche](https://discourse.aurelia.io/u/mreiche)\
**Replies:** 2\
**Last updated:** [June 22, 2024, 7:26pm UTC](https://discourse.aurelia.io/t/how-to-configure-global-aurelia-di-container/5458 "2024-06-22T19:26:29Z")

</div>

The documentation says (Dependency injection (DI) | The Aurelia 2 Docs) Services are usually resolved automatically via constructor injection. However, you can also resolve them manually: const profileService: Profil…

---

## [How to inject Element in Aurelia 2](https://discourse.aurelia.io/t/how-to-inject-element-in-aurelia-2/5098)

<div class="topic-metadata">

**Author:** [@frmjp](https://discourse.aurelia.io/u/frmjp)\
**Replies:** 7\
**Last updated:** [June 21, 2024, 11:25am UTC](https://discourse.aurelia.io/t/how-to-inject-element-in-aurelia-2/5098 "2024-06-21T11:25:50Z")

</div>

In Aurelia 1, I used to do: import { Element, inject } from 'aurelia-framework'; @inject(Element) class MyClass { constructor(element) { this.element = element } }. How do I do that in Aurelia 2 (using ESNext)? I missed …

---

## [Suggestion for npx makes](https://discourse.aurelia.io/t/suggestion-for-npx-makes/5433)

<div class="topic-metadata">

**Author:** [@ah1508](https://discourse.aurelia.io/u/ah1508)\
**Replies:** 1\
**Last updated:** [June 19, 2024, 9:04am UTC](https://discourse.aurelia.io/t/suggestion-for-npx-makes/5433 "2024-06-19T09:04:13Z")

</div>

Hi all, Suggestion for npx makes: (i think it is already scheduled): add vite support. With webpack the package.json and webpack.config.js are frightening. ask if @aurelia/fetch-client should be added as a depende…

---

## [Method decorator does not work with vite](https://discourse.aurelia.io/t/method-decorator-does-not-work-with-vite/5434)

<div class="topic-metadata">

**Author:** [@ah1508](https://discourse.aurelia.io/u/ah1508)\
**Replies:** 3\
**Last updated:** [June 18, 2024, 10:38pm UTC](https://discourse.aurelia.io/t/method-decorator-does-not-work-with-vite/5434 "2024-06-18T22:38:15Z")

</div>

Hi, When using vite, the method decorator cannot be used (@watch for instance). The decorator appears “as is” in the js file sent to the browser in development mode (npm run dev) so the browser throws an error (illegal …

---

## [Decorators are not valid here](https://discourse.aurelia.io/t/decorators-are-not-valid-here/5459)

<div class="topic-metadata">

**Author:** [@norgie](https://discourse.aurelia.io/u/norgie)\
**Replies:** 3\
**Last updated:** [June 17, 2024, 9:46am UTC](https://discourse.aurelia.io/t/decorators-are-not-valid-here/5459 "2024-06-17T09:46:38Z")

</div>

I’ve got this piece of code As you can see the @IRouter decorator is marked with a red squiggly and the message is Decorators are not valid here. As far as I know what I’ve got here is similar to what’s in the docs. T…

---

## [Reusable components in Aurelia, i.e. templates that get fed some of their (dynamic) content by the parent](https://discourse.aurelia.io/t/reusable-components-in-aurelia-i-e-templates-that-get-fed-some-of-their-dynamic-content-by-the-parent/5457)

<div class="topic-metadata">

**Author:** [@mberdev](https://discourse.aurelia.io/u/mberdev)\
**Replies:** 3\
**Last updated:** [June 17, 2024, 8:15am UTC](https://discourse.aurelia.io/t/reusable-components-in-aurelia-i-e-templates-that-get-fed-some-of-their-dynamic-content-by-the-parent/5457 "2024-06-17T08:15:56Z")

</div>

I realize that Aurelia is meant to be a “simple” framework. But still, I’m wondering what would be the best way of achieving this. Imagine that you want to have a List component (i.e., template) that is completely gene…

---

## [Is there an existing Wizard component?](https://discourse.aurelia.io/t/is-there-an-existing-wizard-component/5464)

<div class="topic-metadata">

**Author:** [@mberdev](https://discourse.aurelia.io/u/mberdev)\
**Replies:** 0\
**Last updated:** [June 17, 2024, 7:54am UTC](https://discourse.aurelia.io/t/is-there-an-existing-wizard-component/5464 "2024-06-17T07:54:32Z")

</div>

Hello, I need a “Wizard” component for my project. A “wizard” is a classic component that lets the user go through a linear or branched flow, with the goal of performing an action on the last step : The component abs…

---

## [Advice needed wrt bindables Aurelia 2 beta 18](https://discourse.aurelia.io/t/advice-needed-wrt-bindables-aurelia-2-beta-18/5460)

<div class="topic-metadata">

**Author:** [@norgie](https://discourse.aurelia.io/u/norgie)\
**Replies:** 0\
**Last updated:** [June 14, 2024, 1:06pm UTC](https://discourse.aurelia.io/t/advice-needed-wrt-bindables-aurelia-2-beta-18/5460 "2024-06-14T13:06:44Z")

</div>

In a Auralia 1 application I have a component/class that has this piece of code in it: I’m trying to port this class to Aurelia 2 beta 18 and have tried the following: When attached() gets called the following co…

---

## [Constructor not called in Aurelia 2 components tests](https://discourse.aurelia.io/t/constructor-not-called-in-aurelia-2-components-tests/5454)

<div class="topic-metadata">

**Author:** [@mreiche](https://discourse.aurelia.io/u/mreiche)\
**Replies:** 3\
**Last updated:** [June 14, 2024, 10:29am UTC](https://discourse.aurelia.io/t/constructor-not-called-in-aurelia-2-components-tests/5454 "2024-06-14T10:29:06Z")

</div>

I have a component export class Echart { private \_container: HTMLDivElement; constructor() { console.log("Hallo") } and set a breakpoint at constructor() but it will never created unless a I add a @…

---

## [\[New release\] Au v2 beta 19](https://discourse.aurelia.io/t/new-release-au-v2-beta-19/5445)

<div class="topic-metadata">

**Author:** [@bigopon](https://discourse.aurelia.io/u/bigopon)\
**Replies:** 3\
**Last updated:** [June 14, 2024, 7:05am UTC](https://discourse.aurelia.io/t/new-release-au-v2-beta-19/5445 "2024-06-14T07:05:28Z")

</div>

Beta 19 is here! Release v2.0.0-beta.19 · aurelia/aurelia · GitHub Happy Wednesday folks! we got beta 19 to continue on version series from the previous \[new release\] Au v2 beta 18 Join the discussion here or head over…

---

## [Error injecting singletons in Aurelia 2](https://discourse.aurelia.io/t/error-injecting-singletons-in-aurelia-2/5444)

<div class="topic-metadata">

**Author:** [@mreiche](https://discourse.aurelia.io/u/mreiche)\
**Replies:** 12\
**Last updated:** [June 14, 2024, 4:21am UTC](https://discourse.aurelia.io/t/error-injecting-singletons-in-aurelia-2/5444 "2024-06-14T04:21:16Z")

</div>

For testing purposes, I create a DI container like: const container = DI.createContainer() // This works const numberValueConverter = container.get(NumberValueConverter) But when I want to inject another value convert…

---

## [How to get or create global DI container for testing](https://discourse.aurelia.io/t/how-to-get-or-create-global-di-container-for-testing/5443)

<div class="topic-metadata">

**Author:** [@mreiche](https://discourse.aurelia.io/u/mreiche)\
**Replies:** 11\
**Last updated:** [June 13, 2024, 3:29pm UTC](https://discourse.aurelia.io/t/how-to-get-or-create-global-di-container-for-testing/5443 "2024-06-13T15:29:11Z")

</div>

In Aurelia 1 I was able to configure a global DI container like: import {Container} from "aurelia-dependency-injection"; const container = new Container(); container.makeGlobal(); const bytesFormatValueConverter = conta…

---

## [How to access elements DOM for testing in Aurelia 2?](https://discourse.aurelia.io/t/how-to-access-elements-dom-for-testing-in-aurelia-2/5453)

<div class="topic-metadata">

**Author:** [@mreiche](https://discourse.aurelia.io/u/mreiche)\
**Replies:** 2\
**Last updated:** [June 13, 2024, 2:56pm UTC](https://discourse.aurelia.io/t/how-to-access-elements-dom-for-testing-in-aurelia-2/5453 "2024-06-13T14:56:27Z")

</div>

I followed the tutorial here https://docs.aurelia.io/developer-guides/overview/testing-components but the code resulting code leads to errors. tearDown is @deprecated ICustomElementViewModel.textContent does not ex…

---

## [Support for Aurelia & Nx](https://discourse.aurelia.io/t/support-for-aurelia-nx/5409)

<div class="topic-metadata">

**Author:** [@DannyvanHolten](https://discourse.aurelia.io/u/DannyvanHolten)\
**Replies:** 4\
**Last updated:** [June 12, 2024, 11:38am UTC](https://discourse.aurelia.io/t/support-for-aurelia-nx/5409 "2024-06-12T11:38:48Z")

</div>

Hey Team, We are looking to set up a Monorepo with Nx, that also needs to contain our Aurelia components. From Nx there is no default support for Aurelia, so we have to figure that out ourselves. I tried to get a packa…

---

## [Trigger viewmodel method when repeat.for is done/changes](https://discourse.aurelia.io/t/trigger-viewmodel-method-when-repeat-for-is-done-changes/5442)

<div class="topic-metadata">

**Author:** [@elitemike](https://discourse.aurelia.io/u/elitemike)\
**Replies:** 0\
**Last updated:** [June 10, 2024, 11:39am UTC](https://discourse.aurelia.io/t/trigger-viewmodel-method-when-repeat-for-is-done-changes/5442 "2024-06-10T11:39:37Z")

</div>

I feel I should know this, but I’m out of practice. I need to call refresh on a library when my items are rendered, what is the best way to handle this?

---

## [Routing error - Aurelia 2.0.0-beta.18](https://discourse.aurelia.io/t/routing-error-aurelia-2-0-0-beta-18/5435)

<div class="topic-metadata">

**Author:** [@StefanNj](https://discourse.aurelia.io/u/StefanNj)\
**Replies:** 2\
**Last updated:** [May 28, 2024, 2:29pm UTC](https://discourse.aurelia.io/t/routing-error-aurelia-2-0-0-beta-18/5435 "2024-05-28T14:29:29Z")

</div>

After updating Aurelia to 2.0.0-beta.18, when navigating, I get this error: TypeError: Cannot read properties of null (reading ‘children’) at HrefCustomAttribute.hasLoad (webpack-internal:///./node\_modules/@aurelia/rou…

[Previous page](https://discourse.aurelia.io/latest.md?page=5)

[Next page](https://discourse.aurelia.io/latest.md?page=7)
