grails-asset-pipeline | Grails Asset Pipeline | Plugin library
kandi X-RAY | grails-asset-pipeline Summary
kandi X-RAY | grails-asset-pipeline Summary
Grails Asset Pipeline
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of grails-asset-pipeline
grails-asset-pipeline Key Features
grails-asset-pipeline Examples and Code Snippets
Community Discussions
Trending Discussions on grails-asset-pipeline
QUESTION
I have a project in Grails 2.4.4 in which I also use AngularJS.
I've decided to use the Asset Pipeline Plugin along with AngularJs Annotate Asset-Pipeline. The first one for processing, minifying, etc the static assets(js,css, etc) and the second one for getting the myFunc.$inject = [...]
"injection" in every function that requires it due to the injection dependency in which AngularJS relies on.
According to the doc of AngularJs Annotate Asset-Pipeline it should put the myFunc.$inject=[]
when the war is going to be generated on my js files when required, but the true is different: it is not working at all (I do not see any $inject
in the minified file and the app breaks due to the dependency injection widely discussed on SO (examples: Angularjs error Unknown provider and AngularJS Error: $injector:unpr Unknown Provider)
Below is the relevant code (if any other is required, please, let me know)
BuildConfig.groovy
...ANSWER
Answered 2018-Jul-13 at 14:31Short answer:
Change the version of the dependency
from this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install grails-asset-pipeline
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page