akveo / ng2-smart-table

Angular Smart Data Table component
https://akveo.github.io/ng2-smart-table/
MIT License
1.63k stars 878 forks source link

Compatible with SystemJS? #41

Open ris0 opened 7 years ago

ris0 commented 7 years ago

Please correct me if I am wrong but it doesn't seem like ng2-smart-table is compatible with SystemJS. If it is compatible, do you mind sharing a few examples?

System.config({
        paths: {
            // paths serve as alias
            'npm:': "../node_modules/"
        },
        map: {
            app: "./app",
            '@angular/core': "npm:@angular/core/bundles/core.umd.js",
            '@angular/common': "npm:@angular/common/bundles/common.umd.js",
            '@angular/compiler': "npm:@angular/compiler/bundles/compiler.umd.js",
            '@angular/platform-browser': "npm:@angular/platform-browser/bundles/platform-browser.umd.js",
            '@angular/platform-browser-dynamic':
                "npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js",
            '@angular/http': "npm:@angular/http/bundles/http.umd.js",
            '@angular/router': "npm:@angular/router/bundles/router.umd.js",
            '@angular/forms': "npm:@angular/forms/bundles/forms.umd.js",
            // other libraries
            'rxjs': "npm:rxjs",
            'angular2-in-memory-web-api': "npm:angular2-in-memory-web-api",
            // ag-Grid stuff
            'ag-grid-ng2': "npm:ag-grid-ng2",
            'ag-grid': "npm:ag-grid",
            // ng2-smart-table
            'ng2-smart-table': "npm:ng2-smart-table/ng2-smart-table.js"
            ........................
            .........................

I've tried to search through all of your files in the node_modules but I am not able to identify the correct file to reference. Any help on this would be great! I'll continue to investigate and let you know if I find a solution.

gercarino commented 7 years ago

Hey @ris0 !

I have similar issue, were you able to import ng-smart-table via systemJS? Thank you!

ris0 commented 7 years ago

Hey @G3rmain !

Unfortunately, I was not able to get it to work. I ended up using DHTMLX in one application and Prime NG in another. Between those two libraries, I would recommend Prime NG as it is easier to use in conjunction with TypeScript. DHTMLX does not have any support or type definitions for DHTMLX. That being said, it's still a great library that's wicked fast. I did a performance analysis on a variety of libraries and DHTMLX was the fastest by a large margin.

gercarino commented 7 years ago

I see. Those look like great UI components, I will consider to move to those options, I just reviewed their demos, it would be great to have dts support for DHTMLX but looks pretty good. Thanks for the speedy reply.

ris0 commented 7 years ago

I'm glad that I can help! If you decide to use DHTMLX, check out this post I made on their forum. It could be useful for future integration: https://forum.dhtmlx.com/viewtopic.php?f=2&t=52429&p=144922&hilit=typescript#p144922

On Tue, Jan 31, 2017 at 2:17 PM Germain C notifications@github.com wrote:

I see. Those look like great UI components, I will consider to move to those options, I just reviewed their demos, it would be great to have dts support for DHTMLX but looks pretty good. Thanks for the speedy reply.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/akveo/ng2-smart-table/issues/41#issuecomment-276462357, or mute the thread https://github.com/notifications/unsubscribe-auth/AMOe2I8jEYPuhYUTDUeMQ9-QRKuu4DxVks5rX4iygaJpZM4KNJRk .