Questions tagged [aurelia-templating]

Part of the Aurelia platform and contains an extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.

87 questions
0
votes
0 answers

TD tags stripped out of custom element table row

I have a table that has a custom element for the rows using as-element. The table uses the element as follows:
Devin Goble
  • 2,639
  • 4
  • 30
  • 44
0
votes
1 answer

How can DOM events be used with as-element?

In order to work around issues with browsers not liking anything but table elements in the body of a table, I'm using a custom element for tr like this:
Devin Goble
  • 2,639
  • 4
  • 30
  • 44
0
votes
1 answer

How to implement a switcher/viewstack component with slot?

I'm trying to implement a 'switcher' or 'viewstack' component in Aurelia, this would be useful for wizards, paged content, and stepping through a list of tasks. This would show a single child component at a time from a number of possible children.…
Rich Barber
  • 425
  • 3
  • 11
0
votes
1 answer

Aurelia ViewModel without a view

i want to have a route to a popup dialog. I created a viewmodel with @noView import {noView} from "aurelia-framework"; @noView() export class MyViewModel{ ... } but this leads to this error: aurelia-logging-console.js:54 ERROR [app-router]…
l1e3e3t7
  • 124
  • 11
0
votes
1 answer

Aurelia - when are child compositions done?

Using the Aurelia JS framework, I need to be able to detect when the results of a repeat.for over elements have been loaded completely into the DOM by code in the parent VM. I know I can inject a listener into a @bindable and trigger the listener…
Mike Gates
  • 1,874
  • 3
  • 21
  • 40
0
votes
1 answer

In AureliaJS, how to add/remove views from JS instead of markup?

I have several views/components that implement custom elements, so I use them in my markup as follows: So far so…
simonwidjaja
  • 549
  • 2
  • 6
  • 13
0
votes
1 answer

Aurelia: can't link a controller to my navigation bar template

I started playing around with Aurelia (which is really nice), but quickly ran into an issue for which I cannot immediately find a solution. I am using the Aurelia Skeleton projects from Github. Specifically I am using ESNext + WebPack. But my…
Joachim Seminck
  • 721
  • 1
  • 8
  • 10
0
votes
0 answers

Aurelia, render UI in view-model

I am using bootstrap3-dialog in my Aurelia project, so, theres a way to compile template in view-model? like export class MyComponent { ... showMyDialog() { bootstrapDialog.show({ title: 'My title', message: ` …
talski
  • 293
  • 2
  • 11
-1
votes
1 answer

Want to create n level menu component

I am using aurelia and ES6 to create a n level menu component. The json I am getting is: data: [ levelId: 1, label: 'Level1', chlidItems: [ { levelId: 2, label: 'Level2', childItems: [] // so on multiple levels } …
-1
votes
1 answer

Aurelia: Using index value to increment array value in input binding

I am trying to increment an array value inside a value.bind directive so that, in this example, three rows are created, incrementing the array number:
Norm Strassner
  • 225
  • 3
  • 11
-1
votes
1 answer

Custom attribute not working on dynamic content

I'm using w2ui grid, and the template column generated like so: { field: 'TableCards', caption: 'Table cards', size: '10%', sortable: true , render:function(record, index, column_index) { let html = ''; if…
-1
votes
2 answers

Aurelia dynamic composition

I am trying to implement dynamic composition in aurelia. More precisely I am creating tabs and for each new tab I am adding a new div and inside I am using compositionEngine.compose(...) to add the component corresponding to that tab. A working…
len
  • 1
  • 3
1 2 3 4 5
6