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
1
vote
0 answers
Cant pass value from one view model to another in aurelia
I have two views, in view two i have a select option in which if the user selects an option i would want it to be passed to view one.
this is what i tried
view 1 ts
public selectedOption:string;
view 1 html

deanpillow
- 121
- 1
- 10
1
vote
0 answers
how to style a multi-select drop down
i have multiple multi select drop downs on a page,for example
i have a drop down that lists the months as follows
html

deanpillow
- 121
- 1
- 10
1
vote
1 answer
How to change private class variable by onChange event in Aurelia?
I want to listen to onChange event in a "odata-table" which is part of the aurelia-slickgrid library(https://github.com/ghiscoding/aurelia-slickgrid), take the value from that event and pass it to a variable in the class.
Here is part the class in…

Tarantino
- 45
- 6
1
vote
1 answer
How to convert string to expression ( value ) in aurelia repeat for?
Array used in repeat for loop
let loopArr = ["item.name + ' /'+ item.DisplayName? item.DisplayName: item.otherDisplayName",
"item.description + ' /'+ item.anotherDescription"]
Template

RS17
- 773
- 1
- 9
- 23
1
vote
0 answers
Which is the best approach to write a reusable component / customElement in aurelia?
I need to create multiple tables of same html structure but data and columns are different for each table. So I want to create one table component which has common html structure and can get columns and data as parameter , I'm not sure which is the…

RS17
- 773
- 1
- 9
- 23
1
vote
1 answer
How do I bind a value to a TCustomAttribute in Aurelia?
I'm trying to achieve the following result: I have a set of values that are coming from an array which I iterate over in order to populate an HTML table. As well I have an icon that user can hoover-over and can see data in there coming from the…

Alex T
- 75
- 5
1
vote
2 answers
I'm getting ERROR [app-router] Error: Route not found: /pane02 when trying to navigate to href inside the HTML in Aurelia
I'm trying to insert a navigation tab that will be displayed underneath the main one when the user clicks on the Pane5, but when I click on the child element (Pane01 or Pane02) I get app-router error. Is this happening because of nesting bootstrap…

Alex T
- 75
- 5
1
vote
2 answers
Aurelia - dynamically create custom element in a view-model
I have an Aurelia app where a user can click on a button and create a new tab. The tab and its content (a custom element) do not exist on the page before the user clicks the button. I am generating the HTML for the content at runtime (via…

lebolo
- 2,120
- 4
- 29
- 44
1
vote
1 answer
Aurelia template parse error when string contains HTML entity for quote character
When I try to feed a string to Aurelia from a template and the string contains HTML entities representing the same quoting character as those surrounding the string, I get parser errors. Apparently the HTML enitities are interpreted before they…

Romke van der Meulen
- 280
- 1
- 5
- 16
1
vote
1 answer
How to consume manually compiled template from repeater?
I'm building a custom data grid framework for a LOB-style Aurelia app and need help with how to template the main grid element so it can pick up custom cell templates from child column elements for rendering.
This is what I've done so…

Sam
- 6,167
- 30
- 39
1
vote
1 answer
What is the best "decoupled" way to give focus to an Aurelia component?
Let's say I've built some kind of Aurelia component. For this example, let's say I've built a hypothetical component called ui-money.
Let's say that the ui-money component comprises a text input element, and another element (eg. span) alongside the…

Kevmeister68
- 91
- 6
1
vote
1 answer
Insert template element into slot element
I've built a custom element with a few named slots, something like this:

powerbuoy
- 12,460
- 7
- 48
- 78
1
vote
1 answer
Aurelia compose ViewModel-less
Trying to get the Aurelia compose ViewModel-less working and having some issues.
I was having problems in my project so to test I cloned the skeleton-typescript project.
I created a test.html page within the src directory with the following contents…

Iain Duff
- 15
- 4
1
vote
0 answers
Use a CustomAttribute to replace elements entire content - Aurelia
I'm currently using a customAttribute on a to add column ordering to a table.
I've achieved this by using the following in my Custom Attribute VM;
import {bindable, inject, observable, Container, ViewEngine, ViewSlot, bindingMode} from…

Tom
- 4,257
- 6
- 33
- 49