Sorry to bother... but I am blue in the face and dying of asphyxiation from this.
Ok I am using eclipse and relevent angular plugins to edit a simple list example as follows but it refuses to display on preview or when opened with browser within eclipse.
This one came right out of the book keyed in as-is... ok except for double quotes vs single quotes... the eclipse plugin reacts differently to those... but I dont know why or what takes precedence for these quotes. It seems to like the single quotes better.
Anyway, this JSON list wont display.
Any tips ? Thanks
<script>
alert ('inside js');
var myModule.controller('AppCtrl', function($scope) { });
myModule.controller('AppCtrl', function($scope) {
$scope.stories = [
{title:'Story 00', description:'Description pending.'},
{title:'Story 01', description:'Description pending.'},
{title:'Story 02', description:'Description pending.'},
{title:'Story 03', description:'Description pending.'},
{title:'Story 04', description:'Description pending.'},
{title:'Story 05', description:'Description pending.'}
];
});
</script>
<div ng-controller='AppCtrl'>
<div class='span4 sidebar-content'>
<h2>Stories</h2>
<div class='story' ng-repeat='story in stories' >
<h4>{{story.title}}</h4>
<p>{{story.description}}</p>
</div>
</div>
</div>
<script type="text/javascript"
src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js"></script>
var myModule.controller('AppCtrl', function($scope) { });?