Base solution for your next web application

Activities of "alexanderpilhar"

I want to create an upload-form using ng2-file-upload but fail, getting the following error:

ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'uploader' since it isn't a known property of 'input'. ("<input type="file" ng2FileSelect [ERROR ->][uploader]="uploader"/>")

Actually, this seems to be a common problem a lot of people out there encounter when using ng2-file-upload. Most of them solve it by importing FileUploadModule into their own module. So, I tried to do the same in my main.module.ts - without any success. I still get the same error message.

Is there anything else I might be missing?

Hi!

I want to use bootstrap-tabdrop ([https://github.com/jmschabdach/bootstrap-tabdrop])) for a tab-set (Core, Angular). I added the library to src/assets/bootstrap-tabdrop/... and also added entries to typings.d.ts and .angular-cli.json but no success... I have to admit I don't really know how to add a third-party library correctly - so, I just had a look at how it's done for bootstrap-datetimepicker and tried to reproduce that. But I might be missing something.

Any tips on how to make this work?

Thank you!

Question

I'm trying to build another client for my project which will be used for read-only purposes only. Therefor I want to reduce the libraries used in the default Angular project. Right now I'm removing libraries from angular-cli.json and see if the project still works. But this approach is quite slow. Also there are a lot of errors and I have to find out which library is missing.

Basically, I want to be able to communicate with the server-side using service-proxies as it's done in the default Angular client. Also, I want to be able to use most of the abp-functionalities like localization, timing and so on.

What would be a good aproach to build my reduced Angular client? Am I on the right path? Or should I rather start from scratch and just include the stuff I want to use? If so, how do I start and what do I have to include?

Cheers!

I'm having troubles trying to unsubscribe from some custom event. I use SignalR to trigger an event once an entity gets updated and everything is working fine so far. But when I leave the component and come back to it later, the event will be received for another (although it only gets triggered once, both on erver side as well as on client side - I already checked on that). The more times I leave and come back to the component, the more times the event will be received.

I read the documentation about subscribing and unsubscribing on [https://aspnetboilerplate.com/Pages/Documents/Javascript-API/Event-Bus]) and since unsubscribing isn't demonstrated by example, I came up with this:

private subscribe(): void {
   abp.event.on(this.evGetUpdate, (data) => this.onGetUpdate(data));
}

private unsubscribe(): void {
   abp.event.off(this.evGetUpdate, (data) => this.onGetUpdate(data));
}

onGetUpdate(data: any): void {
   console.log("event received:");
   console.log(data);
}

I think this is how it should work, but no luck. Btw: I'm calling subscribe() in ngOnInit() and unsubscribe() in ngOnDestroy() which are also executed as expected.

Please, give me some advice on how to unsubscribe from abp.event correctly!

After upgrading my Project (ASP.NET Core & Angular with .NET Framework 4.6.1) from version 5.0 to 5.5 I experience the very same issue: [https://github.com/aspnetzero/aspnet-zero/issues/597]) - which seems to have been resolved by upgrading the version of abp-ng2-module ([https://github.com/aspnetzero/aspnet-zero-core/commit/1bc5f34f913c8f76980367fa90e9063b3733ec95])).

I'm using abp-ng2-module 3.0.0 - it is the current version at the moment ([https://www.npmjs.com/package/abp-ng2-module])).

Note: I experience this issue in every browser I have installed (Chrome, Edge, Firefox (Current & Dev Edition), Internet Explorer, Opera, Vivaldi). Also, changing tenant does not work (no error message).

I don't quite know where to look for to solve this problem. Could anyone help, please!?

Is there a way to run both versions of SignalR in parallel server-side (Core, Angular, v5.5.0)? I'm asking because I still have to support some IoT-Clients using AspNet.SignalR.

I tried implementing stuff the way it was implemented in v4.6.0 - but no luck so far ... Client's HubConnection.State is Connected, but invoking something doesn't work (500, internal server error).

Any ideas?

I'm having troubles with swagger ui after publishing Web.Host-project to on-premise IIS. It's just a test-deployment and is therefor located in a subfolder (accessible via <a class="postlink" href="https://mydomain.local/project-name/">https://mydomain.local/project-name/</a>).

swagger ui shows following error message:

Failed to load API definition. Errors Fetch error Not Found /swagger/v1/swagger.json

I guess this is because the project is located in a subfolder!?

If so, please, tell me how to make this work!

I'm currently receiving error-notification when trying to send a message in chat (both on my dev environment as well as on demo.apsnetzero.com; both ASP.NET Core & Angular; ASPNETZERO 5.5.0):

[attachment=0:3evupvak]aspnetzero-chat-send_message-error-20180908.png[/attachment:3evupvak]

AppService method does not get called. There are no errors logged to browser console.

Please, confirm whether there is a problem in ASPNETZERO 5.5.0? If not, why do I encounter this error on demo.aspnetzero.com as well?

I'm having troubles implementing the 'action-menu' for table-items in a modal window. The action-menu should allow me to select actions such as editing and deleting translations for the selected entity. But instead of showing the dropdown with its menu-item, it just saves changes (I get a toast stating changes have been saved) and closes the modal window. Also there are warnings related to sweetalert2 shown in console.

I implemented the action-menu the same way it's done everywhere else ASPNETZERO. Already checked that for errors - unable to find any issues there. Also, I tried to implement it exactly as documented by ngx-bootstrap - doesn't help either.

For now, I switched to use separate buttons instead of the dropdown-menu. But I'd like to have the dropdown because of consistency.

Please, see if you can reproduce the problem (there is no such implementation in ASPNETZERO of a modal that implements a data-table with an action-menu for each data-item).

Please, help me: How do I implement sorting for multi-lingual entities? I have a simple entity that implements IMultiLingualEntity. I just recognized sorting doesn't work (using GetAllPagedSortedAndFilteredInputDto). I tried playing around with pSortableColumn-value but can't figure it out. Is it even possible this way?

Showing 1 to 10 of 51 entries