Open sgireddy opened 9 years ago
Git didn't like html references... please click edit to see the actual references.
I am new myself to angular and I haven't used webjars but the version of angular in the seed is 1.1.5. And your build says 1.2.21. Have you considered that? and AFAICS the seed uses angular-resources and angularjs. If you use ui-router I guess the app.config will be different.
Hi!,
I am trying to integrate this project with webjars. here is what I did:
Update javascript references in index.scala.html
<script type="text/javascript" src="@routes.WebJarAssets.at(WebJarAssets.locate("jquery.js"))">
<script type="text/javascript" src="@routes.WebJarAssets.at(WebJarAssets.locate("bootstrap.js"))"> <script type="text/javascript" src="@routes.WebJarAssets.at(WebJarAssets.locate("angular.js"))"> <script type="text/javascript" src="@routes.WebJarAssets.at(WebJarAssets.locate("angular-ui-router.js"))"> <script type="text/javascript" src="@routes.WebJarAssets.at(WebJarAssets.locate("angular-resource.js"))"> @<script src="@routes.Assets.at("third/jquery/jquery-1.10.2.min.js")" type="text/javascript">@ @<script src="@routes.Assets.at("third/bootstrap/js/bootstrap.min.js")" type="text/javascript">@ @<script src="@routes.Assets.at("third/angularjs/angular.min.js")" type="text/javascript">@ @<script src="@routes.Assets.at("third/angularjs/angular-resource.min.js")" type="text/javascript">@
Error: Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to: Error: [ng:areq] Argument 'fn' is not a function, got string http://errors.angularjs.org/1.2.21/ng/areq?p0=fn&p1=not%20a%20function%2C%20got%20string at http://localh......0)
It seems I am doing everything correct but ended up with this issue. can you please help?