Skip to content
Fix Code Error

Tag: aurelia

in Aurelia – I need to inject data from array of numbers, but it injected in first and no more

June 30, 2021 by Code Error

Posted By: Anonymous in Aurelia – I need to inject data from array of numbers, but it injected in first and no more. see in example that the number of index 0 was injected well but when the number is change, the view is not update. export class App { digits: number[] constructor() { this.digits …

Continue Reading

Aurelia component slotting in markup for components model

May 13, 2021 by Code Error

Posted By: Anonymous I am building an autocomplete component. The plan is that I can slot in some markup for what I know the component is going to bind to. The idea is this could be any object rather than a simple display value and identifier. I have this working using templates but I am …

Continue Reading

VS2017 Outlining Indentation Is Off After Aurelia CLI New

May 13, 2021 by Code Error

Posted By: Anonymous I have a project in VS2017. When I first created the project, the editor would automatically indent my next line of code appropriately. However, I ran the Aurelia CLI command au new –here and selected WebPack as my module loader and ASP.NET Core as my target platform. Everything seemed to go well, …

Continue Reading

Aurelia – bind only once showing the title in repeater

May 13, 2021 by Code Error

Posted By: Anonymous I have a list of users, every users have some roles. In aurelia html file I want to categorize the users. The incoming data has all the users chronologically by roles. So basically, if the user has a role1, show section title ROLE1 and list those users, then show ROLE2 and list …

Continue Reading

Webpack Aurelia – How to configure that not all chunks are bundeld with Aurelia?

May 13, 2021 by Code Error

Posted By: Anonymous I am using Aurelia’s Webpack example (https://aurelia.io/docs/build-systems/webpack/a-basic-example#basic-config-example) to setup my Webpack configuration: const { AureliaPlugin } = require(‘aurelia-webpack-plugin’) const HtmlWebpackPlugin = require(‘html-webpack-plugin’) const { resolve } = require(‘path’) module.exports = function(mode) { return { mode: mode || ‘development’, resolve: { extensions: [‘.ts’, ‘.js’], modules: [resolve(__dirname, ‘src’), resolve(__dirname, ‘node_modules’)], }, entry: { addOn: …

Continue Reading

How do you get the router name to use in a template inside a for navigation loop using Aurelia Framework

May 13, 2021 by Code Error

Posted By: Anonymous I need to get the router.name defined in the routes. Code <li repeat.for=”row of router.navigation” data=${row.name} </li> The code above does not get the route name. I know all of the information I need is in the NavModel but I don’t know how to access it in my above example using a …

Continue Reading

Aurelia – How to position navmenu items to the left and right

May 13, 2021 by Code Error

Posted By: Anonymous I have a navmenu that renders routes via a repeat: <li repeat.for=”row of router.navigation” class=”${ row.isActive ? ‘link-active’ : ” }”> <a href.bind=”row.href” if.bind=”!row.settings.nav”>${ row.title }</a> I have a settings option set as so pos: “left”. I want to use the settings option that is set in each of the routes to …

Continue Reading

Output HTML from an Aurelia TS variable into the view

May 13, 2021 by Code Error

Posted By: Anonymous 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 = "<i>Source:</i>This code is<br />old but it is okay."; Then in the …

Continue Reading

How to show a different object from array in my Aurelia HTML?

May 13, 2021 by Code Error

Posted By: Anonymous Afternoon everyone, New to Aurelia and I’m having some trouble binding a different card to show when I click my link We are using Aurelia. This is my html. <div repeat.for=”card of cards” class=”dilemmacards-detail”> <p repeat.for=”paragraph of card.textSituation” model.bind=”paragraph”>${paragraph}</p> </div> <div click.trigger=”getRandomCard()”>Random card</div> I’ve skinned this down for reading purposes of course. …

Continue Reading

How to capture the user of the active directory logged with Aurelia

May 13, 2021 by Code Error

Posted By: Anonymous I need to know what user of my Active Directory has started session in his machine because depending on which user is he can see a number of things or others. The web app is hosted in an IIS server part of the domain Any idea, please? Regards Solution You can’t get …

Continue Reading

Creating and querying elements in a new DOM body

May 13, 2021 by Code Error

Posted By: Anonymous I have the following code in my typescript file: let body = document.body; // let body = document.body.cloneNode(true); body.querySelectorAll(‘button’).forEach(b => { b.removeAttribute(‘click.delegate’); }); I am trying to update and query the body of a dom page to make a new html document, but when I do this it updates the current one …

Continue Reading

template doesn’t update after resetting everything

May 13, 2021 by Code Error

Posted By: Anonymous I have a custom element that adds items to a container. I have a “close” functionality that closes the container and clears the items so the user can start adding new ones. This works great for adding stuff and closing, but when I try to add new items after the custom element …

Continue Reading

If an npm package ships with multiple dist folders, how do I know which one is used when my App is built?

May 13, 2021 by Code Error

Posted By: Anonymous I am using an npm package (aurelia-google-maps) in my application. The package ships with AMD, System, CommonJS, Native Modules, and ES2015 dist folders like this: /node_modules/ /aurelia-google-maps/ /dist/ /amd /system /native-modules /es2015 /commonjs In my typescript app I am simply importing all the classes and functions as: import {Configure} from "aurelia-google-maps" Is …

Continue Reading

How to correctly return array in redux state, if the array did not have to be updated in the reducer?

May 13, 2021 by Code Error

Posted By: Anonymous I am using the aurelia-store state management library for managing state. This question is not specific to Aurelia store, but actually to redux best practices in general since Aurelia store is very much the same thing. I have an action that fetches unit updates from an API like so: export const fetchNewUnits …

Continue Reading

Aurelia – Hiding routes in navmenu ends up displaying nothing

May 13, 2021 by Code Error

Posted By: Anonymous I wanted to hide routes that were the user roles and I found THIS question on SO that is similar. I tried to implement it in my typescript project but its returning nothing and I am not sure why. This is my implementation as it stands. import { autoinject, bindable, bindingMode } …

Continue Reading

Aurelia: Bindable property gets set “too late”

May 13, 2021 by Code Error

Posted By: Anonymous In my custom element I have a bindable property “menu” which gets set from outside. My problem is that the “dish” properties which rely on the menu get queried before the menu property is set (so menu is undefined and the dishes can’t be retrieved). What can I do here? menu-control.ts: import …

Continue Reading

Accessing an aurelia service inside of a jquery plugin’s setup

May 13, 2021 by Code Error

Posted By: Anonymous Im new to ES6,Typscript & Aurelia as my question will show. I have a small aurelia application and I want to use selectizejs for the tagging function but bind it to a service I have setup within the application. My viewmodel.ts attached(){ $(‘#product_tags’).selectize({ delimiter: ‘,’, persist: false, load: function(query, callback) { if …

Continue Reading

How do I bind a value to a TCustomAttribute in Aurelia?

May 13, 2021 by Code Error

Posted By: Anonymous 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 array and a …

Continue Reading

Aurelia custom gulp watcher

May 13, 2021 by Code Error

Posted By: Anonymous Trying to get a custom watcher to work: var gulp = require(‘gulp’), shell = require(‘gulp-shell’); gulp.task(‘run-au’, shell.task([‘au build’])); gulp.task(‘build’, gulp.series(‘run-au’, () => { return gulp.src(‘./wwwroot/**/*.*’) .pipe(gulp.dest(‘../Something.Api/wwwroot’)); })); gulp.task(‘watch’, () => { gulp.watch(‘./src/**/*.*’).on(‘change’, gulp.series(‘build’)); }); Pretty straightforward, it works when I change something in src, but when it detects that change, it goes …

Continue Reading

Create childRouter inside module, Aurelia

May 13, 2021 by Code Error

Posted By: Anonymous Mabey this is a stupid question. But here we go, I have one page with parent navigation that is setup in the “main” js file. That one works, but in one of the tabs I show a table that expands. Every row that I expand loads a module like this <detail-page></detail-page> In …

Continue Reading

Switching theme of my website

May 13, 2021 by Code Error

Posted By: Anonymous I wish to allow users to switch the entire color-scheme of my site with a buttonpress. I have 2 separate .less files with the same global variables, but different colors. The problem seems quite simple.. “swap 1 .less file for the other”. But how do I actually accomplish this? Of course, I …

Continue Reading

Binding issue in repeat.for in aurelia

May 13, 2021 by Code Error

Posted By: Anonymous I have a list of cards that i populate, when i click on each card i want to get and display the correct items displayed for that card. The problem i am facing is that when i return an array its not binding the correct item to the specific card. This is …

Continue Reading

Aurelia TS pulling map from a map

May 13, 2021 by Code Error

Posted By: Anonymous I have a Map<string, Map<string, boolean>> defined in my appConfig.json and when I try and get values from the map using .get() I get an error that it is not a function. This is in my appConfig.json “rolePermissions” : [ {“name” : “Admin”, “value” : [ {“name” : “customerList”, “value” : “true”}, …

Continue Reading

Where to publish (potential) Aurelia plugins to get feedback

May 13, 2021 by Code Error

Posted By: Anonymous I’ve been working on an Aurelia datagrid component, and I think it might be useful to others. It has a pretty clear API and some features I haven’t found in other Aurelia datagrids so far. I’m considering making it in to a plugin and publishing it. But before I put in a …

Continue Reading

Aurelia doesn’t build after installing jspm

May 13, 2021 by Code Error

Posted By: Anonymous I followed the tutorial on aurelia website to install aurelia-cli. Everything works fine. Under src folder, I did npm install jspm and the project no longer builds. [Error running Gulp] I tried to add gulpfile.js but doesn’t work. Any idea what caused all these? Solution the problem is that aurelia-cli and jspm …

Continue Reading

Aurelia/TS Activate does not update current view

May 13, 2021 by Code Error

Posted By: Anonymous What do I want to achieve I want to update my current view based on an Id. So say that I have side navigation with the following tabs: Customer A Customer B Customer C What I want is that the user can click on Customer A and that the current customer view …

Continue Reading

Load xml file in Aurelia synchoniously

May 13, 2021 by Code Error

Posted By: Anonymous I have a configuration class that needs to load an xml file on starting my aurelia application. Now my problem is, that I have no Idea how to load that file so that I have the information present when I need them. In my current implementation I’m using the aurelia-fetch-client for reading …

Continue Reading

Modifying class variable in function expression

May 13, 2021 by Code Error

Posted By: Anonymous I have some class variables which I want to modify in a function below but the value doesn’t appear to stick. export class Welcome { myLatitude = 0; //I want to modify this inside activate() myLongitude = 0; myMarkers = [ { latitude: -27.451673, longitude: 153.043981 } ]; activate() { var lat …

Continue Reading

Aurelia send config/parameters on initialisation aurelia-app

May 12, 2021 by Code Error

Posted By: Anonymous Is there any way to send let’s say config parameters when initializing an Aurelia app? <div aurelia-app=”my-app/main”></div> This is what I do to start my aurelia app and then <script> System.import(‘aurelia-bootstrapper’); </script> I’d like to do something like: <div aurelia-app=”my-app/main” param1=”something” param2=”false”></div> Right now I’m setting them as data-param1 attributes and then …

Continue Reading

Pushing an object to an array using a repository

May 12, 2021 by Code Error

Posted By: Anonymous I’m new to Aurelia. And I’m browsing to some examples and saw this one. It has this page that lists(cars.js) all the cars and has a create button that redirects you to a different page where you can enter a new car(addCar.js), once you hit save, you’ll be redirected to the lists …

Continue Reading

Posts navigation

  • 1
  • 2
  • 3
  • 4
  • …
  • 63
  • Next

.net ajax android angular arrays aurelia backbone.js bash c++ css dataframe ember-data ember.js excel git html ios java javascript jquery json laravel linux list mysql next.js node.js pandas php polymer polymer-1.0 python python-3.x r reactjs regex sql sql-server string svelte typescript vue-component vue.js vuejs2 vuetify.js

  • you shouldn’t need to use z-index
  • No column in target database, but getting “The schema update is terminating because data loss might occur”
  • Angular – expected call-signature: ‘changePassword’ to have a typedeftslint(typedef)
  • trying to implement NativeAdFactory imports deprecated method by default in flutter java project
  • What should I use to get an attribute out of my foreign table in Laravel?
© 2022 Fix Code Error