i’m trying to figure out how to use angularjs in a module. for testing purpose, i just created a gsp page where you have a text field. if i type any word , it appears under it.
i have the appropriate directive for it to work.
i have already added the different dependencies to the module which are uicommons, appframework and uiframework.
@marafa u can have a look into how angular is used and configured in the registration module and the coreapps module
thank you for the response @gcliff.
i have been through the coreapps and several other modules, specially the allergyui module.
my conclusion is that i have to make sure:
1- i add the different dependencies in the module poms files
3- i put the js files in resources\scripts
Despite respecting the aboves i still can’t get it to work.
@marafa add in your module dependency on the uicomms and then include the
angular-common.js files that you need in your gsp pages files
@gcliff i have already added the dependency in my module.
Could you share your project on github? @marafa
@marafa i think the challenge is from the way u have configured your page controllers , you can have a sample look here and incase you want to get more familiar with the uiframework u can check it out here
@gcliff The controllers seem to be okay…But the import of uicommons resources is what was failing.
I have created a PR on github that does what you wanted that you can look at and customize further to you requirements @marafa
thank you @gcliff. i will have a look
ok @reagan thank you. i will have a test.
hi @reagan. uicommons is finally working.
thank you for your time.