While reading a book on Angular.js, I came across the following syntax:
$scope.selectedOrder; // What does this syntax mean?
$scope.selectOrder = function(order) {
$scope.selectedOrder = order;
};
I understand that selectedOrder is a property of the $scope object.
However, I am puzzled about the purpose of "$scope.selectedOrder;". It doesn't seem to perform any operations. Can someone provide me with a hint? Thank you.