Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 03:11

    EisenbergEffect on master

    docs(backers): new bronze backer (compare)

  • Sep 27 20:21
    dependabot[bot] labeled #195
  • Sep 27 20:21
    dependabot[bot] opened #195
  • Sep 27 20:20

    dependabot[bot] on npm_and_yarn

    chore(deps-dev): bump aurelia-p… (compare)

  • Sep 27 20:18
    dependabot[bot] labeled #358
  • Sep 27 20:18
    dependabot[bot] opened #358
  • Sep 27 20:18

    dependabot[bot] on npm_and_yarn

    chore(deps): bump aurelia-path … (compare)

  • Sep 27 20:18
    dependabot[bot] labeled #15
  • Sep 27 20:18
    dependabot[bot] opened #15
  • Sep 27 20:18

    dependabot[bot] on npm_and_yarn

    chore(deps): bump aurelia-path … (compare)

  • Sep 27 20:18
    dependabot[bot] labeled #212
  • Sep 27 20:18
    dependabot[bot] opened #212
  • Sep 27 20:18

    dependabot[bot] on npm_and_yarn

    chore(deps): bump aurelia-path … (compare)

  • Sep 27 20:17
    dependabot[bot] labeled #357
  • Sep 27 20:17
    dependabot[bot] opened #357
  • Sep 27 20:17

    dependabot[bot] on npm_and_yarn

    chore(deps): bump aurelia-path … (compare)

  • Sep 27 20:14
    dependabot[bot] labeled #152
  • Sep 27 20:14
    dependabot[bot] opened #152
  • Sep 27 20:14
    dependabot[bot] labeled #411
  • Sep 27 20:14

    dependabot[bot] on npm_and_yarn

    chore(deps): bump aurelia-path … (compare)

Tomas Källsen
@tkallsen
@bigopon Hi, I saw your comment on aurelia/binding#409, but I'm having a bit of trouble getting $view = [some HTMLTemplateElement object] to work
it works if you use $view = <template>foo</template>
but not with function createTemplate() { const template = document.createElement("template"); template.innerText = "foo"; return template; }
and $view = createTemplate()
Tomas Källsen
@tkallsen
tankBug
@tankBug

hi! I have an if-binding for "n" tags in the view, and the condition values are kept in a map (computedFrom). I'm having some issues accessing the items in the map inside the view, which I thought would be straightforward, like this if.bind="isThisItemVisible.get(itemId)". Nothing is returned. I know it's passed to the view, because I can get the size to display, just not the content. Is this as expected?

Found out that map.has() works in the if-bind. The problem was that the data was never updated, due to the how a collection is not observed. I seem to have resolved it using the BindingSignaler

Number1awa
@Number1awa
Is there a built in way in aurelia to give special behavior to the text between custom defined characters? For example, !!!Text!!!, where this will initialize some custom component. Basically a short hand for a component html syntax. Reason: Desire to give admin user of site ability to type in textarea and give text special behavior (without knowing anything about html).
Peter "Shawty" Shaw
@shawty
greetings aurelia community, been a while since I've had to work on an AU app, just wondered if there was anyone arund to advise on an "au build" question?
Peter "Shawty" Shaw
@shawty
forget the last request, problem solved :-)
Grégoire Castre
@gcastre
Hello, i'm trying to use the stateChange function but the oldState parameter as the same values as the newState parameter, am I missing something ?
Grégoire Castre
@gcastre
If I put my property at the top level of my state my problem is fixed, is the state supposed to be a flat object ?
Jesse Holwell
@JesseHolwell
Hello. I am adding animation to my page using aurelia-animator-css.
My desired effect is for the animations to not run on page load, and only run on later viewmodel changes.
How can I disable animation for first load?
Thanks in advance :)
arnonuem
@arnonuem
Hi folks what is the current state with aurelia and keycloak integration like in angular. Cant find anything useful on the net. Stuff is like 5 years old. Whats the best practice today.
arnonuem
@arnonuem
@EisenbergEffect do you have any input on this? What is the best way to do openIDConnect with the Aurelia Framework.
qajagbe
@qajagbe

Good day,Please i am trying to loop through an array of objects in aurelia.but I am getting value for 'xxx' is non-repeatable.this is what my component looks like:

@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 = data.response;   
  console.log(this.allApplicants)
});

}
/this is the array passed to
allApplicants = [{"id":1,"name":"Quadri","familyName":"Ajagbe"},{"id":3,"name":"Ibrahim","familyName":"oyeneye"}]
/
}

and my view:
<tbody>
<tr repeat.for="applicant of allApplicants">
<th scope="row">1</th>

    <td>${applicant.name}</td>
    <td>${applicant.familyName}</td>
    <td>${applicant.address}</td>
    <td>Nigeria</td>
    <td>q.ajagbe@gmail.com</td>
    <td>27</td>
    <td>true</td>
    <td>
      <button type="button" class="btn btn-primary">view</button>
      <button type="button" class="btn btn-success">edit</button>
      <button type="button" class="btn btn-danger">delete</button>
    </td>
  </tr>

</tbody>
please help!!
qajagbe
@qajagbe

Good day,Please i am trying to loop through an array of objects in aurelia.but I am getting th error: value for 'xxx' is non-repeatable. this is what my component looks like:
`@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 = data.response;
console.log(this.allApplicants)
});

}`
this is the array of objects passed to this.allApplicants:

// allApplicants = [{"id":1,"name":"Quadri","familyName":"Ajagbe"},{"id":3,"name":"Ibrahim","familyName":"oyeneye"}]

and my view looks like this:

`<tbody>

<tr repeat.for="applicant of allApplicants">
<th scope="row">1</th>

<td>${applicant.name}</td>
<td>${applicant.familyName}</td>
<td>${applicant.address}</td>
<td>Nigeria</td>
<td>q.ajagbe@gmail.com</td>
<td>27</td>
<td>true</td>
<td>
<button type="button" class="btn btn-primary">view</button>
<button type="button" class="btn btn-success">edit</button>
<button type="button" class="btn btn-danger">delete</button>
</td>
</tr>

</tbody>`

please help!!!

qajagbe
@qajagbe

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)
});

}

}`

arnonuem
@arnonuem
This channel seems to be quite dead. Did i miss something? Is there a riot channel now or something where the community is still alive?
rhassler1
@rhassler1
This channel is dead. Instead, go to aurelia.io, then click Discourse.
arnonuem
@arnonuem
thanks
Mike Pisano
@mPisano
I have an Aurelia Application build with NPM\Gulp that has been working perfectly. I recently did an NPM update which upgraded all the components including DropZone. Dropzone apparently changed it's build to use WebPack and now Aurelia sees DropZone's New() Constructor as a Module instead of a function? See https://github.com/dropzone/dropzone/issues/1903#issuecomment-779936105 Any Sugestions?
dcharbonnier
@dcharbonnier
hi, with aurelia 1 it was possible to add a @computedFrom decorator, what is the equivalent with aurelia 2 ?
Roman
@UtmostCreator

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

bigopon
@bigopon
@dcharbonnier in v2, @computedFrom is not needed
dependencies are automatically observed
Please join us on discord for Q/A, discussion, fun and more https://discord.gg/RBtyM6u
The Aurelia team is not actively engaging in this chat room
elias-vlex
@elias-vlex
Hello, Aurelia is trying to module-load any image that it finds in a template like <img src=xxx> I'm using an image that will only be available in the web server
it blows with "Module not found: Error: Can't resolve './img/loaders/rotating-circle-large.svg'"
is there any way I can prevent Aurelia from autoloading imgs ?
Bryan den Hollander
@bryandh
Hi, I've recently updated to the latest Aurelia 2/vnext DEV version 2.1.0-dev.202103310619 and have converted my route hook to a Shared Lifecycle Hook. The 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?
Diego Bustamante
@diegohb
hello! has anyone tried to use bt5 with aurelia yet? i have an aurelia app v1 (ts,sass,systemjs).. i haven't gotten far into my efforts but simply upgraded bootstrap to v5 and removed jquery (along with any mentions in aurelia.json) and immediately getting esprima error on au build ..
geek957
@geek957_gitlab
how to use zlib gunzip in aurelia. zlib_binding.js not foung when using npm install.
ericyang0123
@ericyang0123_twitter
HI I'm new here
Esger Jellema
@Esger66_twitter
Does the Aurelia-mobile-plugin enable drag and drop events for mobile devices?
John Tomaselli
@johntom
@arnederuwe just saw this tread and I do appologize i use aurelia-summernote": "github:ben-girardet/aurelia-summernote. Will post a repo if you request and also try a port to au2/dumber/javascript im working on.
Kanishka Chowdhury
@CKanishka
Hi, when can we expect the new release for aurelia-webpack-plugin with support for Webpack5, the PRs seemed to have been merged?
norgie
@norgie
Is there anything similar to Angular’s ng-init in Aurelia? What, if anything, can be used in lieu of ng-init?
Nick Smith
@Kremnari
@norgie there have been times I use a hidden input with value.bind="(code)" be cautious, as https://docs.angularjs.org/api/ng/directive/ngInit states, it can easily be abused
I've mostly used it on an ifd element to initialize an object
norgie
@norgie
@Kremnari
The Angular 1.x code I’m porting to Aurelia 1 is using ng-init on a <tr> element, i.e.
ng-init=showExpanded=true;checkIfChecked(row)
Nick Smith
@Kremnari
@norgie I'd be happy to continue this in a private chat to better understand your goals
Ashley Bartlett
@AshleyJBartlett

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 of
Cannot POST /callback/xxxxxx

lsototest
@lsototest
hi
Jamie Nelson
@jamie-wearsafe
@CKanishka did you manage to get a working Webpack 5 config with aurelia? I'm also looking for one.
1 reply
Michael Beck
@gravytrain
I have this external library, https://static.zdassets.com/zendesk_app_framework_sdk/2.0/zaf_sdk.js, and I need to be able to have access to the 'ZAFClient' object in the view-model, anyone know how I would go about doing that?
Michael Beck
@gravytrain
I feel like I am overlooking something simple
Michael Beck
@gravytrain
I did overlook something. Typescript is dumb.
GG
@GenGol
When using the aurelia-fetch-client HttpClient, is there a way to change the params.withDefaults({credentials: 'same-origin'}) to 'include' on a per call request. Right now, it looks like you can only set this during configuration. In some cases, I want to set this to include. It just depends on where the call is being made to avoid CORS issues.