# Help Requests

**URL:** https://discourse.aurelia.io/c/help-requests/5.md?page=3

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

**Page:** 4

---

## [Element.ref binding](https://discourse.aurelia.io/t/element-ref-binding/5363)

<div class="topic-metadata">

**Author:** [@mPisano](https://discourse.aurelia.io/u/mPisano)\
**Replies:** 3\
**Last updated:** [March 26, 2024, 1:15pm UTC](https://discourse.aurelia.io/t/element-ref-binding/5363 "2024-03-26T13:15:15Z")

</div>

I have a prompt.html template template div class=“modal fade” tabindex=“-1” role=“dialog” element.ref=“modalElement” … and class export class Prompt { modalElement: Element = null; If users start at the root of th…

---

## [Junk Image Requests (v1)](https://discourse.aurelia.io/t/junk-image-requests-v1/5385)

<div class="topic-metadata">

**Author:** [@TomorrowToday](https://discourse.aurelia.io/u/TomorrowToday)\
**Replies:** 6\
**Last updated:** [March 22, 2024, 8:03pm UTC](https://discourse.aurelia.io/t/junk-image-requests-v1/5385 "2024-03-22T20:03:34Z")

</div>

With Aurelia v1, img tags are frequently sending requests before the src attributes are parsed. Eg \<img src="/images/${imgPath}.png"\> sends a request for /images/$%7BimgPath%7D.png How do I stop this short of using a …

---

## [Router and enhance problem](https://discourse.aurelia.io/t/router-and-enhance-problem/5390)

<div class="topic-metadata">

**Author:** [@dspublic](https://discourse.aurelia.io/u/dspublic)\
**Replies:** 2\
**Last updated:** [March 22, 2024, 6:07pm UTC](https://discourse.aurelia.io/t/router-and-enhance-problem/5390 "2024-03-22T18:07:05Z")

</div>

The example below doesn’t work since beta.12. It gives “The router is already started” exception. (It works fine before Beta.12). How to solve the issue? Any help would be appreciated. import { IAurelia } from 'aurelia'…

---

## [Static inject (DI) problem?](https://discourse.aurelia.io/t/static-inject-di-problem/5387)

<div class="topic-metadata">

**Author:** [@dspublic](https://discourse.aurelia.io/u/dspublic)\
**Replies:** 3\
**Last updated:** [March 20, 2024, 11:14pm UTC](https://discourse.aurelia.io/t/static-inject-di-problem/5387 "2024-03-20T23:14:52Z")

</div>

Hi, There seems to be something wrong with static injection, which doesn’t work since beta 12. From beta.12 this example doesn’t show the label of custom element. Is this a bug, or I miss something? import { customEl…

---

## [Getting component state from child class](https://discourse.aurelia.io/t/getting-component-state-from-child-class/5380)

<div class="topic-metadata">

**Author:** [@will-moore](https://discourse.aurelia.io/u/will-moore)\
**Replies:** 7\
**Last updated:** [March 18, 2024, 7:48pm UTC](https://discourse.aurelia.io/t/getting-component-state-from-child-class/5380 "2024-03-18T19:48:12Z")

</div>

Hi, I wondering if there’s a solution to this question other than “rewrite the app”…? I am working on a microscope image viewer where the main model of the app contains a list of the images (size, id, contrast settings…

---

## [Aurelia 2 router configuration bug](https://discourse.aurelia.io/t/aurelia-2-router-configuration-bug/5342)

<div class="topic-metadata">

**Author:** [@StefanNj](https://discourse.aurelia.io/u/StefanNj)\
**Replies:** 7\
**Last updated:** [March 18, 2024, 3:37pm UTC](https://discourse.aurelia.io/t/aurelia-2-router-configuration-bug/5342 "2024-03-18T15:37:51Z")

</div>

This is an example from documentation I added data to route configuration: data: { data1: "data1" } and when I’m trying access this data, I get data: undefined.

---

## [Testing a component output component.element](https://discourse.aurelia.io/t/testing-a-component-output-component-element/5375)

<div class="topic-metadata">

**Author:** [@vladyn](https://discourse.aurelia.io/u/vladyn)\
**Replies:** 4\
**Last updated:** [March 14, 2024, 5:25pm UTC](https://discourse.aurelia.io/t/testing-a-component-output-component-element/5375 "2024-03-14T17:25:41Z")

</div>

Hello everyone, I’m trying to test a simple component output: import {StageComponent} from 'aurelia-testing'; import {bootstrap} from 'aurelia-bootstrapper'; import {PLATFORM} from 'aurelia-pal'; describe('Account Det…

---

## [Why is from-view used here?](https://discourse.aurelia.io/t/why-is-from-view-used-here/5361)

<div class="topic-metadata">

**Author:** [@DenBie](https://discourse.aurelia.io/u/DenBie)\
**Replies:** 7\
**Last updated:** [March 13, 2024, 11:07pm UTC](https://discourse.aurelia.io/t/why-is-from-view-used-here/5361 "2024-03-13T23:07:26Z")

</div>

Hi, I’m completely new, not only to Aurelia but to this type of framework in general (never worked with Angular, React, Next, etc. either). So there’s a lot to wrap my head around and I’m probably going to be asking som…

---

## [Template markup must be wrapped in a \<template\> from jest with .JADE templates](https://discourse.aurelia.io/t/template-markup-must-be-wrapped-in-a-template-from-jest-with-jade-templates/5362)

<div class="topic-metadata">

**Author:** [@vladyn](https://discourse.aurelia.io/u/vladyn)\
**Replies:** 5\
**Last updated:** [March 13, 2024, 10:48am UTC](https://discourse.aurelia.io/t/template-markup-must-be-wrapped-in-a-template-from-jest-with-jade-templates/5362 "2024-03-13T10:48:47Z")

</div>

Hello everyone, I’m trying to migrate to jest as a test framework in my project, but what I’m getting from the components spec files is: console.log Error: Template markup must be wrapped in a \<template\> element e.…

---

## [Problem with Aurelia Router](https://discourse.aurelia.io/t/problem-with-aurelia-router/5377)

<div class="topic-metadata">

**Author:** [@hdzcalmir](https://discourse.aurelia.io/u/hdzcalmir)\
**Replies:** 1\
**Last updated:** [March 13, 2024, 6:46am UTC](https://discourse.aurelia.io/t/problem-with-aurelia-router/5377 "2024-03-13T06:46:10Z")

</div>

When navigating between views in my Aurelia app, the previous view doesn’t vanish immediately. Instead, it lingers for a couple of seconds before finally disappearing, while the new view gets appended underneath it.

---

## [Fixed: IHttpClient in 2 beta 11](https://discourse.aurelia.io/t/fixed-ihttpclient-in-2-beta-11/5360)

<div class="topic-metadata">

**Author:** [@aGustafson](https://discourse.aurelia.io/u/aGustafson)\
**Replies:** 3\
**Last updated:** [March 11, 2024, 4:24pm UTC](https://discourse.aurelia.io/t/fixed-ihttpclient-in-2-beta-11/5360 "2024-03-11T16:24:53Z")

</div>

Hi, did something change recently regarding the Fetch Client ? I am trying to get the IHttpClient setup in a service class, using the example in the documentation. Like this: constructor(@newInstanceOf(IHttpClient)…

---

## [Potential undocumented load hook in the component's lifecycle](https://discourse.aurelia.io/t/potential-undocumented-load-hook-in-the-components-lifecycle/5341)

<div class="topic-metadata">

**Author:** [@hdzcalmir](https://discourse.aurelia.io/u/hdzcalmir)\
**Replies:** 1\
**Last updated:** [March 8, 2024, 8:22pm UTC](https://discourse.aurelia.io/t/potential-undocumented-load-hook-in-the-components-lifecycle/5341 "2024-03-08T20:22:55Z")

</div>

Is there an undocumented load hook in the component’s lifecycle? When I have a ‘load’ method in a class, it is called automatically, similar to other hooks. This occurs before the ‘binding’ hook and after the ‘created’ …

---

## [Unit tests with Karma outputs 404 on all the JS files](https://discourse.aurelia.io/t/unit-tests-with-karma-outputs-404-on-all-the-js-files/5366)

<div class="topic-metadata">

**Author:** [@vladyn](https://discourse.aurelia.io/u/vladyn)\
**Replies:** 4\
**Last updated:** [March 8, 2024, 2:14pm UTC](https://discourse.aurelia.io/t/unit-tests-with-karma-outputs-404-on-all-the-js-files/5366 "2024-03-08T14:14:51Z")

</div>

Hy guys, I have an standart Aurelia setup for init test based on Karma in a pretty straight forward application. When I run the test - the output is 404: for all the JS files. I banging my head with this and I can’t fi…

---

## [Strange problem with AU1, inheritance, DialogService and dumber](https://discourse.aurelia.io/t/strange-problem-with-au1-inheritance-dialogservice-and-dumber/5121)

<div class="topic-metadata">

**Author:** [@m-gallesio](https://discourse.aurelia.io/u/m-gallesio)\
**Replies:** 11\
**Last updated:** [March 5, 2024, 6:03am UTC](https://discourse.aurelia.io/t/strange-problem-with-au1-inheritance-dialogservice-and-dumber/5121 "2024-03-05T06:03:56Z")

</div>

Greetings. My setup is Aurelia 1 + TypeScript + dumber. I am encountering a strange problem with this (simplified) setup which involves class inheritance and DialogService. In short: base component which opens a …

---

## [Configure BaseUrl for imported OpenAPI feature](https://discourse.aurelia.io/t/configure-baseurl-for-imported-openapi-feature/3495)

<div class="topic-metadata">

**Author:** [@aGustafson](https://discourse.aurelia.io/u/aGustafson)\
**Replies:** 5\
**Last updated:** [February 28, 2024, 6:06am UTC](https://discourse.aurelia.io/t/configure-baseurl-for-imported-openapi-feature/3495 "2024-02-28T06:06:29Z")

</div>

I am using Swagger/OpenAPI to autogenerate the api interface from a Django backend for an Aurelia frontend client. This works really great, but I cant figure out how to configure the Base Url. I can manually set it in …

---

## [Testing components in AU1](https://discourse.aurelia.io/t/testing-components-in-au1/5357)

<div class="topic-metadata">

**Author:** [@vladyn](https://discourse.aurelia.io/u/vladyn)\
**Replies:** 2\
**Last updated:** [February 27, 2024, 6:48am UTC](https://discourse.aurelia.io/t/testing-components-in-au1/5357 "2024-02-27T06:48:02Z")

</div>

Hello guys, I’m Having trouble running my tests (apparently, they have not been maintained for a long time). What I’m getting is: .... i ｢wdm｣: Compiled successfully. 23 02 2024 15:04:37.345:INFO \[karma-server\]: Karma…

---

## [\[Au1\] alter "click.delegate" behavior with custom attribute](https://discourse.aurelia.io/t/au1-alter-click-delegate-behavior-with-custom-attribute/5335)

<div class="topic-metadata">

**Author:** [@migajek](https://discourse.aurelia.io/u/migajek)\
**Replies:** 2\
**Last updated:** [January 18, 2024, 2:52pm UTC](https://discourse.aurelia.io/t/au1-alter-click-delegate-behavior-with-custom-attribute/5335 "2024-01-18T14:52:18Z")

</div>

Hi, I’d like to adjust the behavior of multiple buttons that delegate the click to the action that returns Promise I’d like to avoid creating a custom component that wraps the actual button. Is there any way to alter t…

---

## [Template Controllers](https://discourse.aurelia.io/t/template-controllers/5339)

<div class="topic-metadata">

**Author:** [@quooston](https://discourse.aurelia.io/u/quooston)\
**Replies:** 3\
**Last updated:** [January 18, 2024, 8:50am UTC](https://discourse.aurelia.io/t/template-controllers/5339 "2024-01-18T08:50:05Z")

</div>

Hi, I am looking to implement a feature where a custom element is rendered based on a subscription level. In principle I’d like to be able to declare the subscription level that is required for the element to be rendere…

---

## [Aurela validation display errors](https://discourse.aurelia.io/t/aurela-validation-display-errors/5333)

<div class="topic-metadata">

**Author:** [@trad1983](https://discourse.aurelia.io/u/trad1983)\
**Replies:** 2\
**Last updated:** [December 24, 2023, 2:25pm UTC](https://discourse.aurelia.io/t/aurela-validation-display-errors/5333 "2023-12-24T14:25:15Z")

</div>

i am using aurelia-validation and i have 2 input field the problem when i display error , error show together , i want if error for input one show on span with class input-one and i want if error for input tow show …

---

## [\[SOLVED\] Aurelia 1 - Pass hidden parameters to a row](https://discourse.aurelia.io/t/solved-aurelia-1-pass-hidden-parameters-to-a-row/5327)

<div class="topic-metadata">

**Author:** [@m-gallesio](https://discourse.aurelia.io/u/m-gallesio)\
**Replies:** 2\
**Last updated:** [December 19, 2023, 3:51pm UTC](https://discourse.aurelia.io/t/solved-aurelia-1-pass-hidden-parameters-to-a-row/5327 "2023-12-19T15:51:03Z")

</div>

In Aurelia 1, is there any way to pass data to a route via without it appearing in the query string? This would be useful for: semi-sensitive data (or at least data which should not be in a history item) large data (e…

---

## [Getting the global state in my model](https://discourse.aurelia.io/t/getting-the-global-state-in-my-model/5321)

<div class="topic-metadata">

**Author:** [@vladyn](https://discourse.aurelia.io/u/vladyn)\
**Replies:** 3\
**Last updated:** [December 12, 2023, 7:39pm UTC](https://discourse.aurelia.io/t/getting-the-global-state-in-my-model/5321 "2023-12-12T19:39:21Z")

</div>

Hi guys, I’m trying to get my state in my component. class, where I need to dispatch an action and update the state after an HTTP service wrapper receives a successful response. I’m following the docs state binding comm…

---

## [Need to pack everything in one file](https://discourse.aurelia.io/t/need-to-pack-everything-in-one-file/3194)

<div class="topic-metadata">

**Author:** [@ormasoftchile](https://discourse.aurelia.io/u/ormasoftchile)\
**Replies:** 8\
**Last updated:** [December 7, 2023, 5:40am UTC](https://discourse.aurelia.io/t/need-to-pack-everything-in-one-file/3194 "2023-12-07T05:40:18Z")

</div>

Hi, guys. I need to consolidate an app to deploy it in only one js file. The app has the following configuration: language: typescript bundler: webpack package manager: npm au-cli version: v1.2.3 I am using aureli…

---

## [Aurelia 2: pass build-time variables (dot env?) to browser](https://discourse.aurelia.io/t/aurelia-2-pass-build-time-variables-dot-env-to-browser/5312)

<div class="topic-metadata">

**Author:** [@migajek](https://discourse.aurelia.io/u/migajek)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 11:47am UTC](https://discourse.aurelia.io/t/aurelia-2-pass-build-time-variables-dot-env-to-browser/5312 "2023-12-06T11:47:41Z")

</div>

Hi, I need to register the http api service in the container, however - depending on the environment, a different backend URL should be used. Aurelia 1 used to have environment files with a webpack loader (if I recall …

---

## [Two noob Aurelia 2 questions](https://discourse.aurelia.io/t/two-noob-aurelia-2-questions/5296)

<div class="topic-metadata">

**Author:** [@norgie](https://discourse.aurelia.io/u/norgie)\
**Replies:** 4\
**Last updated:** [November 16, 2023, 7:29pm UTC](https://discourse.aurelia.io/t/two-noob-aurelia-2-questions/5296 "2023-11-16T19:29:01Z")

</div>

I’m prototyping/scaffolding a new application (aurelia2 with webpack) for our users and have ran into a couple of issues a noob like me struggle with. The first problem is about images not showing up when running the a…

---

## [\[solved\] Trouble with binding functions and old code](https://discourse.aurelia.io/t/solved-trouble-with-binding-functions-and-old-code/5293)

<div class="topic-metadata">

**Author:** [@ajoslin103](https://discourse.aurelia.io/u/ajoslin103)\
**Replies:** 3\
**Last updated:** [November 16, 2023, 2:14am UTC](https://discourse.aurelia.io/t/solved-trouble-with-binding-functions-and-old-code/5293 "2023-11-16T02:14:12Z")

</div>

Back in 2016 (? ish) this code worked \<div class="info-pair"\> \<span class="info-tag"\>is print:\</span\> \<input checked.bind="isPrint()" id="is-print" type="radio" class="info-va…

---

## [Aurelia 2 and @bindable](https://discourse.aurelia.io/t/aurelia-2-and-bindable/5291)

<div class="topic-metadata">

**Author:** [@norgie](https://discourse.aurelia.io/u/norgie)\
**Replies:** 3\
**Last updated:** [November 9, 2023, 4:59pm UTC](https://discourse.aurelia.io/t/aurelia-2-and-bindable/5291 "2023-11-09T16:59:31Z")

</div>

Hi. I’ve got a bindable property in a view-model like this: @bindable tabtexts : any. The view-model is marked as a custom element and in the view using said custom element I have: \<div\> \<my-custom-element tabtexts…

---

## [Compose vs au-compose](https://discourse.aurelia.io/t/compose-vs-au-compose/5292)

<div class="topic-metadata">

**Author:** [@norgie](https://discourse.aurelia.io/u/norgie)\
**Replies:** 1\
**Last updated:** [November 9, 2023, 12:12pm UTC](https://discourse.aurelia.io/t/compose-vs-au-compose/5292 "2023-11-09T12:12:33Z")

</div>

What’s the difference? The cheat sheet seems to be using compose while the examples seem to favour au-compose.

---

## [Aurelia 2 and Aurelia Kendo Brigde](https://discourse.aurelia.io/t/aurelia-2-and-aurelia-kendo-brigde/5290)

<div class="topic-metadata">

**Author:** [@norgie](https://discourse.aurelia.io/u/norgie)\
**Replies:** 0\
**Last updated:** [November 9, 2023, 8:35am UTC](https://discourse.aurelia.io/t/aurelia-2-and-aurelia-kendo-brigde/5290 "2023-11-09T08:35:51Z")

</div>

Does anyone happen to know if the Aurelia Kendo Bridge is compatible with Aurelia 2? I.e. can it be used “out of the box” like with Aurelia 1?

---

## [Style top element of component](https://discourse.aurelia.io/t/style-top-element-of-component/5288)

<div class="topic-metadata">

**Author:** [@nnnn](https://discourse.aurelia.io/u/nnnn)\
**Replies:** 2\
**Last updated:** [November 7, 2023, 7:14pm UTC](https://discourse.aurelia.io/t/style-top-element-of-component/5288 "2023-11-07T19:14:29Z")

</div>

I am using Aurelia 2.0.0-beta.8, and I have some styles I apply to the top level element in a component: my-component.html: \<div style="color: red;"\> whatever stuff here \</div\> Then I import that component in another …

---

## [Binding WebCam to video element](https://discourse.aurelia.io/t/binding-webcam-to-video-element/5284)

<div class="topic-metadata">

**Author:** [@tonyerskine](https://discourse.aurelia.io/u/tonyerskine)\
**Replies:** 1\
**Last updated:** [October 30, 2023, 8:25pm UTC](https://discourse.aurelia.io/t/binding-webcam-to-video-element/5284 "2023-10-30T20:25:48Z")

</div>

How do I bind the output of a webcam to the srcObject attribute of a video element? I have the following video element in my HTML \<video id="video" srcObject.bind="cameraStream" if.bind="cameraStream"\>Video stream not …

[Previous page](https://discourse.aurelia.io/c/help-requests/5.md?page=2)

[Next page](https://discourse.aurelia.io/c/help-requests/5.md?page=4)
