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
14
votes
4 answers

Hiding routes in Aurelia nav bar until authenticated

Is there a proper way to hide items in the Aurelia getting started app behind some authentication. Right now I'm just adding a class to each element based on a custom property. This feels extremely hacky.
  • JPinchot
    • 180
    • 1
    • 7
  • 13
    votes
    5 answers

    Fetch API to force download file

    I'm calling an API to download excel file from the server using the fetch API but it didn't force the browser to download, below is my header response: HTTP/1.1 200 OK Content-Length: 168667 Content-Type:…
    Ahmed Saber
    • 489
    • 1
    • 9
    • 21
    13
    votes
    2 answers

    Aurelia Custom Elements: Access Parent method

    I am using Aurelia's Custom Elements to repeat over a set of entries. Here is the sample gist: https://gist.run/?id=38aee854447122f021bc05e1e0de25ae Now, I need to access the deleteEntry(entry) method when clicked on the button defined in custom…
    software_writer
    • 3,941
    • 9
    • 38
    • 64
    13
    votes
    3 answers

    How do I set/read a query string when using the router in aurelia?

    When using the aurelia.io framework router, what is the preferred method for reading and setting a query string? For example, in the url: http://www.myapp.com/#/myroute1/?s=mystate How do I read and set the ?s=mystate part of the url and have the…
    bedo
    • 866
    • 8
    • 15
    13
    votes
    5 answers

    How to pass data from router component to children components in Aurelia?

    Lets say we have a component in Aurelia named UserRouter, which is a child router and handles routing to UserProfile, UserImages and UserFriends. I want the UserRouter to load in the user from the API (on canActivate) and then pass this this user…
    Mike
    • 7,244
    • 5
    • 21
    • 27
    13
    votes
    2 answers

    Run Aurelia Framework without NodeJs and JSPM

    I am learning Aurelia Framework. I seen its document given example in NodeJs and JSPM. But I don't have NodeJs and JSPM. I am from .Net background. Its possible to run Aurelia Framework without install NodeJS. I want run Aurelia Framework just like…
    virender
    • 4,539
    • 5
    • 27
    • 31
    12
    votes
    1 answer

    Aurelia-Router: Modify route params and address bar from VM with Router

    I want update the url-params in the address bar without routing. But i'm not sure how to do this with Aurelia-router from a view-model. In my case I send IDs in the url which gets picked up by the view-model's activate-method. The route looks like…
    Mike
    • 143
    • 1
    • 5
    12
    votes
    2 answers

    Add tinymce editor to element object instead of selector

    I have a custom-element (Aurelia equivelent of a web component) that creates a tinymce editor. There is no way to select the textarea by using a selector (because there can exist any number of these custom-elements on a page). I need some way of…
    pQuestions123
    • 4,471
    • 6
    • 28
    • 59
    12
    votes
    1 answer

    How to force binding re-evaluate or re-rendering in Aurelia

    I am starting with a simple TODO app with Aurelia, RethinkDB & Socket.IO. I seem to have problem with re-rendering or re-evaluating an object that is changed through Socket.IO. So basically, everything works good on the first browser but doesn't get…
    ghiscoding
    • 12,308
    • 6
    • 69
    • 112
    12
    votes
    1 answer

    Aurelia aurelia-fetch-client and with JSON POST

    I have the following code which works is working well: import {inject} from 'aurelia-framework'; import {HttpClient, json} from 'aurelia-fetch-client'; @inject(HttpClient) export class Items { heading = 'Items'; apiKey = ""; …
    user1513388
    • 7,165
    • 14
    • 69
    • 111
    12
    votes
    2 answers

    Rendering large data tables efficiently with Aurelia

    I'm struggling with performance when rendering large data tables using Aurelia. Even in case of moderate size tables (20x20) I'm not getting below 200ms for Chrome, MS Edge takes ~800ms and IE11 takes ~2s. The 200ms are an issue as well, if you want…
    reinholdk
    • 123
    • 6
    12
    votes
    1 answer

    How to access the DOM Element in an aurelia unit test?

    In a unit test, how can I instantiate a custom element (or view) and get access to the live DOM element? I read this article which gets to the point where the custom element is instantiated but I don't think I can get to the DOM element. BTW, I know…
    Sylvain
    • 19,099
    • 23
    • 96
    • 145
    12
    votes
    2 answers

    aurelia-fetch-client.d.ts undefined symbols

    When I include aurelia-fetch-client in my project, I get some errors that I can't resolve. It says that it can't find: Request, Response, Headers, BufferSource, URLSearchParams, as you can see in the following image: How can I solve that?
    Cosmin Ioniță
    • 3,598
    • 4
    • 23
    • 48
    12
    votes
    2 answers

    Global Functions In Aurelia

    I'm trying to figure out how to store a "global" like function in Aurelia. I've followed this tutorial "http://blog.durandal.io/2015/04/24/aurelia-custom-elements-and-content-selectors/" to open a modal with a dynamic view modal, but I can't figure…
    Ben Kilah
    • 3,445
    • 9
    • 44
    • 56
    12
    votes
    6 answers

    Configure Aurelia Project using Visual Studio

    I know it's very new, but I'd like to create a prototype using aurelia with Visual Studio. VS support is in the hopper, but the current documentation is based on node.js et al. Based on the existing documentation, I haven't a clue. I'm hoping I…
    dudeNumber4
    • 4,217
    • 7
    • 40
    • 57