jQWidgets Forums
jQuery UI Widgets › Forums › Angular › Angular 8 install
This topic contains 3 replies, has 3 voices, and was last updated by ivanpeevski 3 years, 4 months ago.
-
AuthorAngular 8 install Posts
-
I have an application with multiple modules. Is it possible to use the npm install jqwidgets-ng? I tried this and the install works fine, but if I add modules (ie: jqxGridModule) to my AppModule then I don’t have access to the jqxGridComponent in other modules I’ve added to AppModule. ONLY within AppModule.
In past I had to use the jqwidgets-scripts/jqwidgets-ts/ install in order to access among multi-modules, but decided in my latest app to try the jqwidgets-ng install. Does this not work? Or what trick am I overlooking in the setup?
Thanks!
Hi loridale27,
I have created a github repository on how to set up jQWidgets with Angular 8 using the ‘npm install jqwidgets-ng’.
Link to the github repo: https://github.com/yavor-htmlelements/ng8test
If you can modify it so that it reproduces the issue that you have so that we could be able to give you a proper solution for this.
Let me know what you think!
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
jQWidgets TeamYavor,
I don’t use github, so not exactly sure how to edit your example. But using your created example, if you add another module to AppModule (ie: SharedModule), and within SharedModule you are wanting to add components which use jqxGridComponent (ie: ClientTableComponent, and InventoryListComponent), how is it that you can make it accessible within SharedModule? I can’t add the jqxGridModule because it is already added to AppModule, but it cannot be seen from SharedModule.Thank-you!
Hi loridale27,
If you don’t use github, you can also send us a zipped project, which reproduces the issue so that we can give you a proper solution.
In the meantime, if have already imported jqxGridModule and/or any other jqWdigets Module in
AppModule
and you want those modules to be available to other custom modules, then you can set jqxGridModule as one of theexported
modules fromAppModule
and then importAppModule
to the custom modules, where you want to use the jqxGridModule. I suggest having a look at the following guide regarding sharing modules in Angular.I hope this will be of help!
If you face any other problems, please do not hesitate to contact us again.
Best regards,
Ivan Peevski
jQWidgets Team -
AuthorPosts
You must be logged in to reply to this topic.