Part of the Aurelia platform and contains an extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.
Questions tagged [aurelia-templating]
87 questions
0
votes
0 answers
How can I redirect link to external page in tag with Aurelia?
I'm making the footer of my page and in the mobile version, when I click on a link, it does not redirect me to where it should go, it only redirects me if it is an internal page of the same repository, and the link that I need to redirect, is…
0
votes
1 answer
Updating an observable collection from a parent component in Aurelia
To better understand interactions between Aurelia components, I've separated the list component of the Todo List app in Aurelia's quick start documentation into its own class and corresponding view. But doing so leads to the view not updating when a…

Jacob Archambault
- 642
- 9
- 16
0
votes
2 answers
Aurelia dynamically bound variable with template string
I am trying to set the dynamic id of a component within a component.
So the child component has a bindable uniqueId property.
The parent component has its own uniqueId which I am trying to keep into the child component's uniqueId, as such sort of…

Moustachiste
- 412
- 4
- 14
0
votes
1 answer
Error: No Aurelia APIs are defined for the element: "DIV"
I am facing this issue with my newly started app.
Error: No Aurelia APIs are defined for the element: "DIV".
This is the call stack:
getAU webpack:///./node_modules/aurelia-binding/dist/native-modules/aurelia-binding.js?:5384
locateAPI…

Moustachiste
- 412
- 4
- 14
0
votes
1 answer
Output HTML from an Aurelia TS variable into the view
I have an Aurelia app that works something like so:
test.ts
private testing:string;
// The constructor and other methods get the testing from the database that contains clean/sanitized HTML (not malious or entered by a user)
// An example:
testing…

cdub
- 24,555
- 57
- 174
- 303
0
votes
1 answer
How to load a md-select based on a different md-select option(binding issue)
Hello i am very new to aurelia js, i have a binding issue that i am stuck with,
I have two md-select drop downs on a page, when the form loads it populates a list of Shops, which works correctly as bellow
0
votes
1 answer
Aurelia composition, use different view-models with the same view
I have a case where I want to use a specific template file, e.g. template-file.html for a set of different view models.
To determine the view-model to load with the view I use a JSON configuration file.
I have the following…

Jan Jaap
- 437
- 1
- 4
- 13
0
votes
1 answer
Aurelia TypeError: this.sourceExpression.connect is not a function
I have encountered runtime error:
TypeError: this.sourceExpression.connect is not a function
Problem is that stacktrace does not show anything useful, it points (randomly) to the last line of one of bundled components (in this case Leaflet's…

Nenad
- 24,809
- 11
- 75
- 93
0
votes
1 answer
Pass global Object/Model to custom element in Aurelia
referring to the following post StackOverflow Question I have a quite different scenario where I want to know if Aurelia has a solution for.
Scenario:
I have a user model:
export class User{
@bindable name: string;
@bindable address:…

SNO
- 793
- 1
- 10
- 30
0
votes
2 answers
Aurelia custom element - $parent undefined
I have template with repeater:
${ $parent.$index } - ${ $index }
Which prints result: 0 - 0 0 - 1 1 - 0 1 - 1 If I use custom element…
Nenad
- 24,809
- 11
- 75
- 93
0
votes
1 answer
relative to ng-include in Aurelia.js
I want import to my main html few other parts like heder, footer, so can I do this in aurelia?
I tried this bellow and did not work

raduken
- 2,091
- 16
- 67
- 105
0
votes
1 answer
Aurelia generated SVG elements are invisible when using custom elements
Why are custom elements in SVG invisible?
Composing Svg with Aurelia is similar to composing html. You have to make sure though that any custom elements are implemented containerless (either by decorating the ViewModel with the `@containerless'…

Arjan
- 1,034
- 8
- 29
0
votes
2 answers
Get ViewModel of containerless element
In Aurelia when I want to access the view model of a DOM element which is an aurelia custom element I can use the au property which Aurelia attaches, like componentElement.au.controller.viewModel.
When my custom element is containerless (attribute…

ZoolWay
- 5,411
- 6
- 42
- 76
0
votes
2 answers
0
votes
0 answers
Aurelia bound function on custom element is undefined, but bound data is not
I have a custom element hierarchy that looks like select-single <- dropdown <- dropdown-wrapper where each name is a custom element and each arrow represent a template that uses that custom element.
When I use select-single, the attached handler…

XBigTK13X
- 2,655
- 8
- 30
- 39