Aurelia 1.x Q&A - Sandbox at https://codesandbox.io/s/aurelia-javascript-sandbox-jnl6q85zq5
dependabot[bot] on npm_and_yarn
chore(deps): bump ua-parser-js … (compare)
for anyone having this issue I posted above, I resolved it by wrapping the response from the api in a JSON.PARSE
so my componet looks like this `
@inject(ApplicantService)
export class Applicants{
friends: any[];
message: string;
allApplicants: IApplicant[] = [];
constructor(private applicantService: ApplicantService) {
this.message = "all applicants.";
applicantService.getData()
.then(data => {
this.allApplicants = JSON.parse(data.response);
console.log(this.allApplicants)
});
}
}`
Hello everyone!
Could you help me on how can I generate new components using AU2 cli?
Because I am having this error:
https://privatebin.net/?141c4fccddbb2a19#BYNqy37wFL2CBuo8ftaQMPdXdbftYfEWQoWSGqpJ73Yz
canLoad
of my AuthHandler runs and all seems well with the auth part of it. However, ever since updating, I don't seem to receive my query parameters in the load(params)
of my pages that implement IRouteViewModel
; the params object stays empty. Any suggestions on what I could be doing wrong in this regard?
value.bind="(code)"
be cautious, as https://docs.angularjs.org/api/ng/directive/ngInit states, it can easily be abused
if
d element to initialize an object
Hi, this is a long shot as I don't believe it's possible but...
with Aurelia, is it possible to intercept a POST request from an external site?
I have developed a web app with Aurelia which redirects out to a payment gateway and the payment gateway is doing a POST request back to our return URL which understandably returns an error ofCannot POST /callback/xxxxxx
include
. It just depends on where the call is being made to avoid CORS issues.
import * as environment from "../config/environment.json";
import { PLATFORM } from "aurelia-pal";
import { CustomElementRegistry } from "aurelia-web-components";
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.globalResources("resources/elements/message-parts");
// .feature(PLATFORM.moduleName('resources/index'));
aurelia.use.developmentLogging(environment.debug ? "debug" : "warn");
if (environment.testing) {
aurelia.use.plugin(PLATFORM.moduleName("aurelia-testing"));
}
aurelia
.start()
.then(() => {
const registry = aurelia.container.get(CustomElementRegistry);
registry.useGlobalElements();
})
.then(() => aurelia.setRoot(PLATFORM.moduleName("app")));
}
I am trying to upgrade aurelia-templating-resources from 1.6.0 -> 1.13.1 to get the fix for the race condition when composing a UI (PR: aurelia/templating-resources#345) - it is throwing an exception when it calls configure.globalResources (Invalid resource path [function Compose(element, container, compositionEngine, viewSlot, viewResources, taskQueue)). I am wondering if I need to upgrade other dependencies along with the aurelia-templating-resources upgrade.
This is the aurelia section of my package.json:
"aurelia-animator-css": "1.0.4",
"aurelia-bootstrapper-webpack": "1.1.0",
"aurelia-configuration": "1.0.17",
"aurelia-event-aggregator": "1.0.1",
"aurelia-fetch-client": "1.1.3",
"aurelia-framework": "1.3.1",
"aurelia-history-browser": "1.1.1",
"aurelia-http-client": "1.2.1",
"aurelia-i18n": "1.6.2",
"aurelia-loader-webpack": "2.1.0",
"aurelia-logging-console": "1.0.0",
"aurelia-pal-browser": "1.8.0",
"aurelia-polyfills": "1.3.4",
"aurelia-route-recognizer": "1.1.1",
"aurelia-router": "1.5.0",
"aurelia-templating-binding": "1.4.1",
"aurelia-templating-resources": "1.13.1",
"aurelia-templating-router": "1.3.1",
thank you