I recently started working with Angular. In my JavaScript file, I have the following code:
App.controller('ProductController', ['$scope', 'ProductService', function ($scope, ProductService) {
console.clear();
console.log('startX');
$scope.price = '$55.6';
}]);
When it comes to the view, this is what I have:
<div class="bloc-bleu">
<div class="f" ng-controller="ProductController">
<p><span>{{ price }}</span><!-- instead of <span class="old price">1250€</span> --></p>
However, I am facing an issue where I cannot retrieve the value of price
in the view.
Update: Upon checking the console, I noticed this error message: