position within html for angular <script> tag

Viewed 1549

I have been handed a project that will combine CodeIgniter with AngularJS. Since i have no real world exp. with angular, I have been going through the tuts. I have noticed sporadic issues with where the html script tag that locates the angular.js file. Some of the tutorials have the script tag within the html tag and some of the tuts have the script tag down at the bottom (before the closing tag). When inserted within the head tag, it works every time. But when placed down at the bottom, my tut app has issues. Like it wont recognize the {{variable}} and do what its supposed to. Should angular work at both locations?? I was always taught that the only javascript reference that goes in the head is Respond.js and the modernizr.js. Everything else can be located at the bottom of the html page I am using the most recent stable version of angular.

Tony

2 Answers
Related