I don’t know if I did it wrong, it allowed me to go to the next one though, but on the localhost browser section it doesn’t show the contents that are saved under the $scope.title. The<h1>{{ title }}</h1> would print out {{ title }}, is that suppose to happen?
the same goes when I do the section in Hello AngularJS II for the $scope.promo. the <h2>{{ promo }}</h2> doesn’t show the contents that are placed under the $scope.promo and just shows {{ promo }}. I copied and paste what they said to put so yeah…
In app.js var app = angular.module("myApp", []);
in MainController.js app.controller('MainController', ['$scope', function($scope) { $scope.title = 'Top Sellers in Books'; $scope.promo = 'Only the best'; }]);
Seems to be working fine now that I’ve moved on to the next exercise. I think there was a problem with the index.html, it appeared to be empty at first.
sigh i dont know. I really want to learn and I hope im doing it right. if i just move on like that and never got it to work, i wouldn’t have learnt anything