If you wish to incorporate the library, script, and initialize the application with a view in your index.html file, consider inserting the following code:
<html>
<body ng-app="yourApp">
<div class="span12">
<div ng-view=""></div>
</div>
<script src="http://code.angularjs.org/1.2.0-rc.2/angular.js"></script>
<script src="script.js"></script>
</body>
</html>
YourView.html can simply consist of:
<div>
<h1>{{ stuff.h1 }}</h1>
<p>{{ stuff.content }}</p>
</div>
In scripts.js, include your controller where data is bound to $scope.
angular.module('yourApp')
.controller('YourCtrl', function ($scope) {
$scope.stuff = {
'h1':'Title',
'content':"A paragraph..."
};
});
Lastly, configure routes and assign the controller to the view for its $scope (i.e. your data object).
angular.module('yourApp', [])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/yourView.html',
controller: 'YourCtrl'
});
});
This approach follows Angular's methodology for accessing data. Please note that testing has not been conducted, so there may be bugs present.