Skip to content

Commit

Permalink
Prevent magnification of AngularJS
Browse files Browse the repository at this point in the history
AngularJS relies on some naming conventions to do its dependency
injection. If we use minify, it wantonly renames stuff without caring
for those conventions causing all things to break. The solution is to
*not* minify for now.

For more information

https://groups.google.com/d/msg/yeoman-dev/642ocaWEHw8/Q2bN0UTw6sgJ
http://docs.angularjs.org/guide/dev_guide.services.injecting_controllers

See #9.
  • Loading branch information
Nicholas Chen committed Feb 1, 2013
1 parent 411ad56 commit def5165
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion SubmitterHTML/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,20 @@
<!-- Add your site or application content here -->
<div class="container" ng-view></div>

<!--Vendor scripts-->
<script src="scripts/vendor/angular.js"></script>
<script src="scripts/vendor/angular-resource.js"></script>

<!-- build:js scripts/scripts.js -->
<!--Additional scripts that are not packaged in AngularJS style-->
<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/sha1.js"></script>

<!--Do not minify AngularJs since that will cause issues with its convention over configuration dependency injection-->
<!--See https://groups.google.com/d/msg/yeoman-dev/642ocaWEHw8/Q2bN0UTw6sgJ-->
<script src="scripts/app.js"></script>
<script src="scripts/CourseraGraderUtils.js"></script>
<script src="scripts/controllers/main.js"></script>

<!-- build:js scripts/scripts.js -->
<!-- endbuild -->

</body>
Expand Down

0 comments on commit def5165

Please sign in to comment.