ronatartifact (5) [Avatar] Offline
#1
I just downloaded version 7 of the book and Chapter 2 is still not fixed.


Listing 2.2 and 2.6 are titled "app.html"


It still does not run as written

index.html should be

<html ng-app="Angello">

<head>

<meta charset="ISO-8859-1">

<title>Angello</title>

<script src="http://ajax.googleapis.com/ajax/libs/jquery <br /> /1.9.1/jquery.min.js"></script>

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"></script>

<script type="text/javascript" src="app.js"></script>

</head>

<body>

<div ng-controller="MainCtrl">

<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>

</body>

</html>


Listing 2.5 has lost the first line


var myModule = angular.module('Angello',[]);

myModule.controller('MainCtrl', 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.'},

];

});


If one fixes all of these things, the page does not display as shown in figure 2.2 since, the author has failed to mention the css file or add a link to it and has not included the codefor the css to produce 2.2.

Message was edited by:
ronatartifact

Message was edited by:
ronatartifact

Message was edited by:
ronatartifact

Message was edited by:
ronatartifact

Message was edited by:
ronatartifact

Message was edited by:
ronatartifact
jabrantes (3) [Avatar] Offline
#2
I have the version 8 and the problem continues.

The browser render only:

Stories