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.
now when i use the necessary ui.includejavascript in the page, there is no result but when i use the normal script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js, i get it to work. so i’m assuming there is something i need to add to my module for it to work.
i have already added the different dependencies to the module which are uicommons, appframework and uiframework.
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
2- i include the different javascript from uicommons in the gsp file (ui.includeJavascript(“uicommons”, “angular.min.js”)
3- i put the js files in resources\scripts
Despite respecting the aboves i still can’t get it to work.
@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