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
2
votes
0 answers
Aurelia use if.bind with a condition?
I am implementing a page with 10 views that hide/show based on a variable called currentView.
I have it working using the ${} syntax and my own hide/show classes...

Tyson
- 21
- 3
2
votes
1 answer
Aurelia: data binding issue with the primary property of a custom attribute
I am learning about Aurelia for a few weeks now and I seem to have a data binding issue with a custom attribute.
I have created the following square custom attribute (based on the examples from the "Templating:Custom Attributes" guide on the Aurelia…

Bart Hofland
- 3,700
- 1
- 13
- 22
2
votes
0 answers
Aurelia bindingContext is undefined
I have a component which is shown in a particular view.
I am now taking that component using to show it in a pop-up as well.
The component has several components within it.
example code would be like this:
…

David Schwartz
- 43
- 1
- 6
2
votes
0 answers
Using @computedFrom array in repeater
Is this possible? Can't seem to get it to work. Trying to dynamically generate an array using computed from and displaying entries using a repeater.
@computedFrom('myArray')
get onlyOneType() {
let images = this.myArray.filter((entry) =>…

Ivan Bacher
- 5,855
- 9
- 36
- 56
2
votes
1 answer
Aurelia: EventAggregator fires twice
The function called by the subscription function triggers twice.
The publisher is not being used in an activate or attached function, but in an async function of a different class. Both classes recieve the same EventAggregator through binding.…

JustynaT
- 31
- 3
2
votes
0 answers
Aurelia - How to get instance of a dynamically created Custom Element in a View/ViewSlot
So I found how to build and create an Aurelia Custom Element dynamically via a View/View Slot with the code shown below, however, I don't know how to get its instance (well I found a way but it's ugly)
Here's the util service I have to dynamically…

ghiscoding
- 12,308
- 6
- 69
- 112
2
votes
1 answer
aurelia: properly sanitizing innerHTML-bound data
I am perfectly aware that I can sanitize innerHTML-bound data using:
However, based on my observations, this sanitization only removes