aurelia

Should I exclude Aurelia scripts folder in .gitignore?

为君一笑 提交于 2019-12-13 13:41:24
问题 Should I put the /scripts folder of my Aurelia project in .gitignore, since as best as I can tell, they are rebuilt on each run anyway? My .gitignore currently contains: node_modules jspm_packages .idea .DS_STORE Should I add the following? scripts 回答1: Assuming you're talking about a private repo: We don't check in any generated files, including the js files that visual studio generates which live beside the TypeScript files (we leave VS' transpile turned on even though the aurelia build

Accessing dimensions of SVG component in Aurelia

青春壹個敷衍的年華 提交于 2019-12-13 08:24:00
问题 I'm porting over a d3 application into Aurelia and need to access the width and height of the chart's SVG parent in order to fit the chart properly to the current screen dimensions. Before porting, it looked like this, filling up the whole container properly: This is what it looks like in Aurelia: It sets its dimensions by calling d3.select('#timeline-svg').style('width') and d3.select('#timeline-svg').style('height') . But now, in Aurelia, whenever I call those it returns dimensions of 300 x

Javascript error in simple Aurelia ASP.Net 5.0 RC1 Setup

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 07:36:19
问题 I am attempting to setup a very basic Aurelia project in ASP.Net 5.0 RC1. I am getting the following JavaScript error after doing a basic initial setup. I am using TypeScript. Unhandled promise rejection Error: XHR error (404 Not Found) loading http://localhost:5392/core-js.js Error loading http://localhost:5392/core-js.js as "core-js" from http://localhost:5392/jspm_packages/npm/aurelia-loader@1.0.0-beta.1/aurelia-loader.js at o (http://localhost:5392/jspm_packages/system.js:4:12694) at

Aurelia - how to change bound variables, so the GUI changes?

社会主义新天地 提交于 2019-12-13 07:21:21
问题 Still trying to find an answer to Aurelia JS - Making a synchronous HTTP request, to change data before page load? - so I've reduced it to the following question. Let's say we work with contact manager tutorial: http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/contact-manager-tutorial/1 ... whose code is also copied on https://gist.run/?id=c73b047c8184c052b4c61c69febb33d8 ... Now, this is how I read the code: in contact-list.js , in the constructor() of ContactList class, we

Aurelia JSPM install -y not working on window

时光总嘲笑我的痴心妄想 提交于 2019-12-13 07:15:29
问题 I am doing the aurelia tutorial http://aurelia.io/get-started.html Im trying to install aurelia dependencies using gulp and jspm. I runned "jspm install -y" with no problem. And when I go to the browser and open the console i have this error: localhost/:5 GET http://localhost/proyectos/fabho/Aurelia/firstApp/navigation-app/jspm_packages/npm/font-awesome@4.2.0/css/font-awesome.min.css 404 (Not Found) es6-module-loader.src.js:2563 GET http://localhost/proyectos/fabho/Aurelia/firstApp/navigation

How to import 'bootstrap-datetimepicker' into Aurelia project

落花浮王杯 提交于 2019-12-13 04:27:16
问题 I'm trying to add 'Eonasdan/bootstrap-datetimepicker' into an Aurelia with typescript project and call this.birthDateDatePicker.datetimepicker(); in the "attached" method from the Aurelia life-cycle. I added: import $ from 'jquery'; import {datepicker} from 'Eonasdan/bootstrap-datetimepicker'; and there was no error, but when I try to inject like this @inject(HttpClient, json, datepicker) I get the following error: GET http://127.0.0.1:8080/jquery.js 404 (Not Found) I'm not sure the two

Trouble importing Materialize into an Aurelia project

混江龙づ霸主 提交于 2019-12-13 04:00:04
问题 I'm trying to import the materialize-css library for use in an aurelia project. Materialize is imported in App.ts with import 'jspm_packages/npm/materialize-css@0.97.1/dist/js/materialize.min' , but this causes the project to fail on load with the following errors: GET http://localhost:8000/hammerjs.js 404 (Not Found) GET http://localhost:8000/jspm_packages/npm/materialize-css@0.97.1/dist/js/picker.js 404 (Not Found) Unhandled promise rejection Error: XHR error (404 Not Found) loading http:/

Aurelia - Navmenu not updating based on @computed value

狂风中的少年 提交于 2019-12-13 03:52:26
问题 I received and answer from THIS question which I think is correct however I do not get a value propagating back to the view. I have added in a number of console.logs and they are not being hit. Here is my navMenu - I wanted "loggedIn" to be true if it has a value in localstorage... <template bindable="router"> <require from="./navmenu.css"></require> <div class="main-nav"> <div class="navbar navbar-inverse"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle=

Aurelia - Trouble with custom-element

岁酱吖の 提交于 2019-12-13 02:43:54
问题 Novice. I have an app.html that has two custom-elements: <template> <require from="../navmenu/navmenu.html"></require> <require from="./app.css"></require> <!--We want the nav bar to span the page--> <div class="container-fluid"> <navmenu router.bind="router"></navmenu> </div> <!--We want the media to centre so we use just container--> <div class="container"> <div className='col-sm-12'> <div className='row'> <router-view></router-view> </div> </div> </div> </template> The router is bound to

Aurelia validation working but not displaying validation messages

送分小仙女□ 提交于 2019-12-13 02:14:07
问题 I have aurelia-validation ( version 0.6.3 ) setup and blocking the form submission when calling this.validation.validate().then () => {...} , but no validation message is displayed on the UI, neither when the value of a field changes nor when the validation blocks the form submission, which I would expect based on the Aurelia Validation examples main.js export function configure(aurelia) { aurelia.use .standardConfiguration() .developmentLogging() .plugin("aurelia-animator-css", settings => {