Aurelia 1.x Q&A - Sandbox at https://codesandbox.io/s/aurelia-javascript-sandbox-jnl6q85zq5
EisenbergEffect on master
doc(backers): thank you to our … (compare)
<template bindable="displayName">
<div>${displayName}</div>
</template>
<template>
<require from="./display-name.html"></require>
<display-name displayName="something"></display-name>
</template>
Is it possible to inject a JSON file into a constructor?
import * as project from '../aurelia_project/aurelia.json';
import { autoinject } from 'aurelia-framework';
@autoinject
export class App {
constructor(project: Object) {...}project is undefined here. Was wondering if using @inject on the constructor argument would help, but not sure how to go forward.
@inject('app-config')