Aurelia 1.x Q&A - Sandbox at https://codesandbox.io/s/aurelia-javascript-sandbox-jnl6q85zq5
dependabot[bot] on npm_and_yarn
chore(deps): bump terser from 4… (compare)
dependabot[bot] on npm_and_yarn
chore(deps): bump terser from 4… (compare)
dependabot[bot] on npm_and_yarn
chore(deps): bump terser from 4… (compare)
dependabot[bot] on npm_and_yarn
chore(deps): bump terser from 5… (compare)
{
"name": "aurelia-validation",
"path": "../node_modules/aurelia-validation/dist/amd",
"main": "aurelia-validation"
},
{
"name": "aurelia-validatejs",
"path": "../node_modules/aurelia-validatejs/dist/amd",
"main": "aurelia-validatejs"
},
{
"name": "validate.js",
"path": "../node_modules/validate.js/",
"main": "validate"
},
services/
directory somewhere, but also like the idea of having it alongside the component which makes them more decomposable, replaceable pieces, hopefully
Can I not add properties to my router's navigation items? This doesn't seem to work:
parent.js:
export class Parent {
configureRouter(config, router) {
config.map([
{
route: ['','child'],
name: 'child',
moduleId: './child',
nav: true,
title: 'Child',
class: 'icon-ion-briefcase'
},
]);
}
}
parent.html (see <i class.bind="nav.class">
):
<template>
<div class="content-panel">
<ul class="tabs">
<li class="nav-item" repeat.for="nav of router.navigation">
<a class="nav-link" href.bind="nav.href"><i class.bind="nav.class"></i> <span>${nav.title}</span></a>
</li>
</ul>
<router-view containerless></router-view>
</div>
</template>
Hello everyone. Got a question...
When using <compose>, is there any way to provide a default view to render in the case that the dynamic view/model specified on the element does not exist? E.g....
<compose view="view-that-does-not-exist.html" view-model="vm-that does-exist.js"></compose>
Since the view does not exist, a 404 occurs while loading it. I want to catch this case (also for the VM), and swap out the view/VM with our custom "not found" view. Is it possible?