Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • Jan 27 08:56
    dependabot[bot] labeled #215
  • Jan 27 08:56
    dependabot[bot] opened #215
  • Jan 27 08:56

    dependabot[bot] on npm_and_yarn

    chore(deps): bump ua-parser-js … (compare)

  • Jan 22 16:51
    m-gallesio closed #770
  • Jan 18 13:20
    Rtalos commented #167
  • Jan 16 15:44
    dependabot[bot] edited #55
  • Jan 16 15:44
    dependabot[bot] labeled #55
  • Jan 16 15:44
    dependabot[bot] edited #59
  • Jan 16 15:44
    dependabot[bot] labeled #59
  • Jan 16 15:44
    dependabot[bot] edited #61
  • Jan 16 15:44
    dependabot[bot] labeled #61
  • Jan 16 15:44
    dependabot[bot] edited #65
  • Jan 16 15:44
    dependabot[bot] labeled #65
  • Jan 16 15:44
    dependabot[bot] edited #66
  • Jan 16 15:44
    dependabot[bot] labeled #66
  • Jan 16 15:44
    dependabot[bot] edited #67
  • Jan 16 15:44
    dependabot[bot] labeled #67
  • Jan 16 15:44
    dependabot[bot] edited #68
  • Jan 16 15:44
    dependabot[bot] labeled #68
  • Jan 16 15:44
    dependabot[bot] edited #69
The Aurelia team is not actively engaging in this chat room
Hello, Aurelia is trying to module-load any image that it finds in a template like <img src=xxx> I'm using an image that will only be available in the web server
it blows with "Module not found: Error: Can't resolve './img/loaders/rotating-circle-large.svg'"
is there any way I can prevent Aurelia from autoloading imgs ?
Bryan den Hollander
Hi, I've recently updated to the latest Aurelia 2/vnext DEV version 2.1.0-dev.202103310619 and have converted my route hook to a Shared Lifecycle Hook. The canLoad of my AuthHandler runs and all seems well with the auth part of it. However, ever since updating, I don't seem to receive my query parameters in the load(params) of my pages that implement IRouteViewModel; the params object stays empty. Any suggestions on what I could be doing wrong in this regard?
Diego Bustamante
hello! has anyone tried to use bt5 with aurelia yet? i have an aurelia app v1 (ts,sass,systemjs).. i haven't gotten far into my efforts but simply upgraded bootstrap to v5 and removed jquery (along with any mentions in aurelia.json) and immediately getting esprima error on au build ..
how to use zlib gunzip in aurelia. zlib_binding.js not foung when using npm install.
HI I'm new here
Esger Jellema
Does the Aurelia-mobile-plugin enable drag and drop events for mobile devices?
John Tomaselli
@arnederuwe just saw this tread and I do appologize i use aurelia-summernote": "github:ben-girardet/aurelia-summernote. Will post a repo if you request and also try a port to au2/dumber/javascript im working on.
Kanishka Chowdhury
Hi, when can we expect the new release for aurelia-webpack-plugin with support for Webpack5, the PRs seemed to have been merged?
Is there anything similar to Angular’s ng-init in Aurelia? What, if anything, can be used in lieu of ng-init?
Nick Smith
@norgie there have been times I use a hidden input with value.bind="(code)" be cautious, as https://docs.angularjs.org/api/ng/directive/ngInit states, it can easily be abused
I've mostly used it on an ifd element to initialize an object
The Angular 1.x code I’m porting to Aurelia 1 is using ng-init on a <tr> element, i.e.
Nick Smith
@norgie I'd be happy to continue this in a private chat to better understand your goals
Ashley Bartlett

Hi, this is a long shot as I don't believe it's possible but...

with Aurelia, is it possible to intercept a POST request from an external site?

I have developed a web app with Aurelia which redirects out to a payment gateway and the payment gateway is doing a POST request back to our return URL which understandably returns an error of
Cannot POST /callback/xxxxxx

Jamie Nelson
@CKanishka did you manage to get a working Webpack 5 config with aurelia? I'm also looking for one.
1 reply
Michael Beck
I have this external library, https://static.zdassets.com/zendesk_app_framework_sdk/2.0/zaf_sdk.js, and I need to be able to have access to the 'ZAFClient' object in the view-model, anyone know how I would go about doing that?
Michael Beck
I feel like I am overlooking something simple
Michael Beck
I did overlook something. Typescript is dumb.
When using the aurelia-fetch-client HttpClient, is there a way to change the params.withDefaults({credentials: 'same-origin'}) to 'include' on a per call request. Right now, it looks like you can only set this during configuration. In some cases, I want to set this to include. It just depends on where the call is being made to avoid CORS issues.
Monica Zhang
I am trying to use aurelia-web-components to export a simple custom element into web component in order to use by other framework. My project just has one component under src/resource/elements folder and I followed the instructions under https://www.npmjs.com/package/aurelia-web-components. After running "npm run build", the dist folder just contains a bunch of app and vendors chunk js files. Where are the "You will find the compiled code in the dist folder, available in module formats: UMD, AMD, CommonJS and ES6."? How do I distribute the exported web components to other framework?
Here is my main.js file:
import * as environment from "../config/environment.json";
import { PLATFORM } from "aurelia-pal";
import { CustomElementRegistry } from "aurelia-web-components";

export function configure(aurelia) {
  // .feature(PLATFORM.moduleName('resources/index'));

  aurelia.use.developmentLogging(environment.debug ? "debug" : "warn");

  if (environment.testing) {

    .then(() => {
      const registry = aurelia.container.get(CustomElementRegistry);
    .then(() => aurelia.setRoot(PLATFORM.moduleName("app")));

I am trying to upgrade aurelia-templating-resources from 1.6.0 -> 1.13.1 to get the fix for the race condition when composing a UI (PR: aurelia/templating-resources#345) - it is throwing an exception when it calls configure.globalResources (Invalid resource path [function Compose(element, container, compositionEngine, viewSlot, viewResources, taskQueue)). I am wondering if I need to upgrade other dependencies along with the aurelia-templating-resources upgrade.

This is the aurelia section of my package.json:

"aurelia-animator-css": "1.0.4",
"aurelia-bootstrapper-webpack": "1.1.0",
"aurelia-configuration": "1.0.17",
"aurelia-event-aggregator": "1.0.1",
"aurelia-fetch-client": "1.1.3",
"aurelia-framework": "1.3.1",
"aurelia-history-browser": "1.1.1",
"aurelia-http-client": "1.2.1",
"aurelia-i18n": "1.6.2",
"aurelia-loader-webpack": "2.1.0",
"aurelia-logging-console": "1.0.0",
"aurelia-pal-browser": "1.8.0",
"aurelia-polyfills": "1.3.4",
"aurelia-route-recognizer": "1.1.1",
"aurelia-router": "1.5.0",
"aurelia-templating-binding": "1.4.1",
"aurelia-templating-resources": "1.13.1",
"aurelia-templating-router": "1.3.1",

thank you

Philip Peitsch
@bigopon hello! :wave:
Just wanted to ask, is there a plan on the horizon to release the changes in the aurelia-web-components module on to NPM any time soon? I'd like to get use of the forcePrefix setting that's there :sweat_smile:
Mark Roeling
Quick question, there used to be a jobs.aurelia.io site. Is there an alternative somewhere, and/or is it to be re-set up after au2? Preferably for not just USA ;)
Avraham Essoudry
hi, there is a site that visualize aurelia binding expressions as you type them, but I can't find the link..
anyone here knows where i can find it?
(parsing the expressions into AST, and visualize them.)
Avraham Essoudry
Hello, I need help with a Jasmine unit test for an Aurelia dialog. I recently upgrade the aurelia dialog package and I had to replace the dialog.open.then() to dialog.open.whenClosed. Now there are about 6 unit test failing because dialog.whenClosed is not a function. This is the implementation:
and this is how is set up in the unit test as of now:
Has anyone encountered any similar problems? If so, how do you go about fixing it?
Paul R. De Buck
Hi guys, I'm trying to animate an img (simple translation) but not on page load, but rather on the moment the element becomes visible in the screen, what would be the most appropriate way to do so with Aurelia Animation plugin ? Thanks
Paul R. De Buck
can I like call a function whenever we reach a certain div ?
Esger Jellema
@Pauldb8 aurelia animator will add the au-enter and au-enter-active classes when your element enters the DOM and when it has finished entering. (For elements with the au-animate class) You just have to write the styling you want to happen as these classes are applied. See:
Paul R. De Buck
Yes but it this case, the elements are already in the dom, I just want the animation to take place when certain div is reached and show in the view
Paul R. De Buck

In the end I used an eventListener on the scroll of the page, https://ilikekillnerds.com/2016/02/using-event-listeners-in-aurelia/
together with adding a class to the element, whenever
elements[i].getBoundingClientRect().top - windowHeight <= 0

Also I tried using scrolltop.bind="scrolltop" but that never worked so.

Esger Jellema
@Pauldb8 I did not understand 'reaching a certain div' because you did not mention scrolling. The intersectionObserver API provides a better approach then a scroll listener. https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
Elliot Schep

Hi all, I would like to write agnostic js code for a design system components (e.g. dropdown) that could be used in Aurelia and VueJS. Example agnostic code:

element = document.createElement('div')
element.addEventListener('click', () => console.log('foo'))

Do you guys know if I can somehow use that in Aurelia?

NVM it seems you can use React in Aurelia, so I guess this is not so hard. I will figure it out :)
John Tomaselli
Perhaps use web components. Try using some developed web components before writing one, see https://shoelace.style/
Have multiple text inputs, only one of which is editable at a time. The input is visible only when being edited, otherwise it is replaced with styled text. I seem to be unable to set focus on the text input after it is first created. I have tried several suggestions I have found on the web, but none of them have seemed to work.
Just found https://discourse.aurelia.io/, so moving this there...
heya all! been using Aurelia for a few years now and love it, but we are trying to upgrade it to latest and Web Pack 5. works great until you run it i get No view model found in module "app". nothing in the typescript or html has changed at all, just updating the npm packages. anyone seen this yet?
Newbie question please! Basic DI is giving me "Unexpected character '@'" on inject. "import {inject} from 'aurelia-framework'" (or aurelia-dependency-injection) and then "@inject(ServiceName)" to decorate the class. "You may need an appropriate loader to handle this file type" - what could be wrong here? I used the CLI to create the project (using TS, webpack and Sass)
Dan Pettersson
I just ran into the existance of the "view-cache" attribute. If used on an element with if, is setting view-cache="0" the same thing as setting cache to false in the if attribute?