I have a class that uses an instance of DialogService from 'aurelia-dialog` to open almost every dialog in my Aurelia application. In a very abstract way the class looks like this:
export class DialogTrigger{
triggerDialogA() {...}
…
I'm facing a problem when using the new aurelai release :
I created a new app using : au new myApp
I installed aurelia-dialog via npm
When I import aurelia-dialog and try to run the app using
au run --watch
I get htis error :
[Error: ENOENT:…
I am trying to test a custom dialog component to be used with aurelia-dialog which gets it's property bindings through an activate() method. In order to test the component, I am setting up the tests with a element which also utilizes the…
When I click button #btn1 or #btn2 Save, the console says that:
Uncaught Error: save is not a function
getFunction @ aurelia-binding.js:1971
evaluate @ aurelia-binding.js:1565
callSource @ aurelia-binding.js:4989
(anonymous function)…
I am developing an aurelia app. I have a component (which is a full-page component and is navigable) and also in another page, I want to use this component as a prompt to let user choose from that page. So I have written the code below to open it as…
I'm integrating the aurelia-dialog plugin into an Aurelia CLI project using TypeScript 2+.
I want to theme dialogs by replacing the default CSS the plugin uses with my own CSS coming from a SASS file, like this:
export function configure(aurelia:…
I've been messing around with aurelia-dialog trying to get a modal dynamically populated with some information. I have some stuff working but the modal is the incorrect size for the data its displaying.
welcome.js
import {DialogService} from…
When opening a dialog, it is shown more than once
Tried to prevent double opening by checking if a dialog is already open
if (!this.dialogService.hasOpenDialog) {
return this.dialogService
.open({ viewModel: AssignTeam })
…
I have a service (no view) that depends on DialogService from aurelia-dialog, and uses that for opening a dialog. I want to test my service. While doing that I got the following error on dialogService.open(...).
Error: DialogRenderer must implement…
I am trying get Aurelia Dialog to be up in one route tab, but when I switch tabs, it will not be up anymore. Then when I return to the first, it has the dialog still up.
I have set the host of my Aurelia Dialog to be inside one of my routes (in a…
I have a view that launches a confirmation dialog but instead of waiting for the dialog to return with a result, the code jumps straight to the 'then' portion of the promise. See code below:
ConfirmDialog.ts
import { inject } from…
Using Aurelia, you can put stuff in the container and then inject it. The container state is not shared in the dialog.
Is there a way to get the data I injected in the container, and use it inside the dialog?
Code example
home.js
fetchString(){
…
I'm using semantic-ui, which has its own modal functionality built in (see here). Rather than writing all the code to leverage this particular functionality in Aurelia, is there a way to hook into the aurelia-dialog plugin's rendering pipeline so I…