Questions tagged [aurelia]

Aurelia is a next generation JavaScript client framework that leverages simple conventions to empower your creativity.

Aurelia
is a next generation JavaScript client framework that leverages simple conventions to empower your creativity.

Features

  • Forward-thinking
  • Modern Architecture
  • Two-Way Databinding
  • Extensible HTML
  • Routing & UI Composition
  • MV* with Conventions
  • Convention over Configuration
  • Broad Language Support
  • Testable

Community

Getting Started

Presentations

For the most up to date list refer to Awesome Aurelia (curated list of resources)

3402 questions
1
vote
2 answers

How do you get syncfusion to work in an aurelia electron app using webpack?

I have Aurelia, Electron, and Webpack working but I would like to include the CDN version of Syncfusion. In a normal web app you can just include it in the HTML file but how do you include it in an Aurelia Electron Webpack app? In my app.html I…
dan
  • 2,857
  • 6
  • 34
  • 60
1
vote
3 answers

JS async/await doesn't wait for my functions to resolve their promise

Can you help me understand why this doesn't work: I'm working in Aurelia, and I try to validate some input data using the validation controller, which is documented here: https://aurelia.io/docs/plugins/validation#validation-controller Now, I have a…
robertpaulsen
  • 209
  • 4
  • 9
1
vote
2 answers

Aurelia Validation Result Is Both True And False

I'm using Aurelia-validation, and I've created a validation-controller that can on demand run validate( object: myObj, propertyName: "myProp", rules : MyRules) Documentation: https://aurelia.io/docs/plugins/validation#validation-controller For some…
robertpaulsen
  • 209
  • 4
  • 9
1
vote
1 answer

What do and in AureliaJS tests mean?

I am doing a test over my custom component. Inside it, I make a require to a child. When testing with Karma and Jasmine, the view content of my child component is empty and appears tag instead. I realised that for other other…
lordneru
  • 700
  • 7
  • 19
1
vote
0 answers

Net Core Identity 2.1 Authentication Not Working Correctly Accessing Protected Endpoints

The problem to be described is where an application is intended to be used to authenticate another application and a Login page does not successfully authenticate then correct credentials are entered. The endpoints in several applications are…
1
vote
1 answer

Rebind data in child component when updates (AureliaJS)

I have a component which has a grid-child-component. I pass the data to the grid from the parent: After the data is updated in the parent, I also need to be refresh / rebinded in child. Currently, it is not. data is…
lordneru
  • 700
  • 7
  • 19
1
vote
2 answers

SVG Polyline Manipulation in TypeScript

I am working with TypeScript 3.1.1 in VS Code with an Aurelia project. I need to manipulate an SVG Polyline in TypeScript code. I am having trouble creating a new SVGPoint object. My initial HTML looks like this:
Tony Lugg
  • 552
  • 2
  • 7
  • 21
1
vote
1 answer

How to explicitly include resources of aurelia-dialog@2.0.0-rc.3 with SystemJS+TS?

Considering changes described here Aurelia Dialog breaking changes we are trying to export our established project based on JSPM and TypeScript so it can be started without this error: system.src.js:1612 Uncaught (in promise) TypeError: t.substr is…
1
vote
1 answer

Using THREE.js with aurelia-cli, exporting as global

Install THREE.js: npm install three Configuring aurelia.json: "dependencies": [ { "name": "three", "path": "../node_modules/three/build", "main": "three.min" } importing in view: import * as THREE from…
Ivan Bacher
  • 5,855
  • 9
  • 36
  • 56
1
vote
2 answers

set binding context for custom element aurelia

I want to set the binding context for my custom element. something like How can this be achieved? Thanks.
Gena Verdel
  • 588
  • 5
  • 21
1
vote
0 answers

Using Aurelia Store what is the best way to copy your state within Actions?

What are some ways in which to deep clone my state inside an Action? Possible solutions I’ve seen are Immer.js, JSON.parse(JSON.stringify), or create a recursive function which does a deep clone. I was even thinking of recreating what Redux does and…
Evan Larsen
  • 9,935
  • 4
  • 46
  • 60
1
vote
2 answers

Aurelia: History must implement activate()

I'm new to Aurelia, trying to implement some 'simple' dynamic routing with an id. config.map([ { route: 'questions/:id', . . .} ]); I receive a runtime error which indicates I'm missing an activate() method. aurelia-history.js:4 Uncaught…
JohnKoz
  • 908
  • 11
  • 21
1
vote
2 answers

Cannot open Aurelia site in EDGE

Having a strange issue with Microsoft Edge not loading my Aurelia site. I've googled for hours with no luck. Microsoft's only solution is to clear cache or do an sfc /scannow. If I have developer tools open, the page attempts to load, but after a…
jbockle
  • 633
  • 5
  • 11
1
vote
1 answer

Aurelia: Trying to make 2 HTML columns with single array

I'm having a problem figuring out how to make two equal columns (won't be exactly equal if the array length is odd) out of a single array. So , and have them in two columns.
Norm Strassner
  • 225
  • 3
  • 11
1
vote
2 answers

In Aurelia Router is it possible to get notified when the user attempts to navigate to the same page?

The Aurelia Router fires off events in the EventAggregator which I can subscribe to. My code subscribes to the router:navigation:processing event so that whenever a user clicks a route my navigation menu…
Evan Larsen
  • 9,935
  • 4
  • 46
  • 60