This is the sequence that your code should follow:
Once DOM Rendered Sucessfully, find the root element of your AngularJS application, which is typically the root of the document.
Call angular.bootstrap to compile the element into an executable, bi-directionally bound application.